Merge "Skip handling accessibility events while nav bar is not initialized"

This commit is contained in:
TreeHugger Robot
2020-07-29 16:08:04 +00:00
committed by Android (Google) Code Review

View File

@@ -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);