Skip to content

Commit 88c5cf0

Browse files
authored
fix(android): protection when a11y callback fires early (#11061)
1 parent bdf13cf commit 88c5cf0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/application/application.android.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,10 @@ let touchExplorationStateChangeListener: android.view.accessibility.Accessibilit
723723
let sharedA11YObservable: AndroidSharedA11YObservable;
724724

725725
function updateAccessibilityState(): void {
726+
if (!sharedA11YObservable) {
727+
return;
728+
}
729+
726730
const accessibilityManager = getAndroidAccessibilityManager();
727731
if (!accessibilityManager) {
728732
sharedA11YObservable.set(accessibilityStateEnabledPropName, false);

0 commit comments

Comments
 (0)