Merge "Fix NPE" into tm-qpr-dev
This commit is contained in:
@@ -1290,8 +1290,10 @@ public class NavigationBar extends ViewController<NavigationBarView> implements
|
||||
}
|
||||
|
||||
private void onVerticalChanged(boolean isVertical) {
|
||||
mCentralSurfacesOptionalLazy.get().ifPresent(statusBar ->
|
||||
statusBar.getNotificationPanelViewController().setQsScrimEnabled(!isVertical));
|
||||
Optional<CentralSurfaces> cs = mCentralSurfacesOptionalLazy.get();
|
||||
if (cs.isPresent() && cs.get().getNotificationPanelViewController() != null) {
|
||||
cs.get().getNotificationPanelViewController().setQsScrimEnabled(!isVertical);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean onNavigationTouch(View v, MotionEvent event) {
|
||||
|
||||
Reference in New Issue
Block a user