From c64668bd3bbc04f448a7710f947d0f3c52930cb1 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Tue, 16 Jan 2024 07:21:52 +0530 Subject: [PATCH] fix: kotlin type mismatch Otherwise we get errors like this : ``` e: file:///private/tmp/nix-build-status-mobile-build-nightly-android.drv-1/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt:196:21 'onInitializeAccessibilityNodeInfo' overrides nothing e: file:///private/tmp/nix-build-status-mobile-build-nightly-android.drv-1/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt:200:65 Type mismatch: inferred type is View? but View was expected e: file:///private/tmp/nix-build-status-mobile-build-nightly-android.drv-1/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt:200:71 Type mismatch: inferred type is AccessibilityNodeInfoCompat? but AccessibilityNodeInfoCompat was expected ``` --- .../viewcontrollers/stack/topbar/button/ButtonPresenter.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt b/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt index 93b3b8e5690..ce2919c6b9e 100644 --- a/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt +++ b/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt @@ -194,8 +194,8 @@ open class ButtonPresenter(private val context: Context, private val button: But class WixAccessibilityDelegateCompat: AccessibilityDelegateCompat(){ override fun onInitializeAccessibilityNodeInfo( - host: View?, - info: AccessibilityNodeInfoCompat? + host: View, + info: AccessibilityNodeInfoCompat ) { super.onInitializeAccessibilityNodeInfo(host, info) @@ -216,4 +216,4 @@ open class ButtonPresenter(private val context: Context, private val button: But } -} \ No newline at end of file +}