mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
fix(android): accessibility crash on View not extending android.view.View (#9303)
This commit is contained in:
@ -545,7 +545,7 @@ function setAccessibilityDelegate(view: Partial<View>): void {
|
|||||||
ensureNativeClasses();
|
ensureNativeClasses();
|
||||||
|
|
||||||
const androidView = view.nativeViewProtected as android.view.View;
|
const androidView = view.nativeViewProtected as android.view.View;
|
||||||
if (!androidView) {
|
if (!androidView || !androidView.setAccessibilityDelegate) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user