Merge "Fix random systemui crashes during boot"
This commit is contained in:
@@ -3842,8 +3842,10 @@ public class StatusBar extends SystemUI implements DemoMode,
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void onKeyguardOccludedChanged(boolean keyguardOccluded) {
|
public void onKeyguardOccludedChanged(boolean keyguardOccluded) {
|
||||||
|
if (mNavigationBar != null) {
|
||||||
mNavigationBar.onKeyguardOccludedChanged(keyguardOccluded);
|
mNavigationBar.onKeyguardOccludedChanged(keyguardOccluded);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// State logging
|
// State logging
|
||||||
|
|
||||||
@@ -4633,7 +4635,8 @@ public class StatusBar extends SystemUI implements DemoMode,
|
|||||||
|
|
||||||
// TODO: Figure out way to remove this.
|
// TODO: Figure out way to remove this.
|
||||||
public NavigationBarView getNavigationBarView() {
|
public NavigationBarView getNavigationBarView() {
|
||||||
return (NavigationBarView) mNavigationBar.getView();
|
return (mNavigationBar != null) ?
|
||||||
|
(NavigationBarView) mNavigationBar.getView() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------- DragDownHelper.OnDragDownListener ------------------------------------
|
// ---------------------- DragDownHelper.OnDragDownListener ------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user