Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f83267e2 authored by Winson Chung's avatar Winson Chung
Browse files

Skip handling accessibility events while nav bar is not initialized

Bug: 162213184
Test: Manual
Change-Id: I3444525e913db5d39a567417e2260f2f21d2a3b6
parent fb42f22f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1211,6 +1211,9 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback
    }

    private void updateAccessibilityServicesState(AccessibilityManager accessibilityManager) {
        if (mNavigationBarView == null) {
            return;
        }
        boolean[] feedbackEnabled = new boolean[1];
        int a11yFlags = getA11yButtonState(feedbackEnabled);