Skip to content

Commit

Permalink
fix: kotlin type mismatch
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
siddarthkay committed Mar 16, 2024
1 parent a76ed36 commit c64668b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -216,4 +216,4 @@ open class ButtonPresenter(private val context: Context, private val button: But
}


}
}

0 comments on commit c64668b

Please sign in to comment.