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) {
|
private void onVerticalChanged(boolean isVertical) {
|
||||||
mCentralSurfacesOptionalLazy.get().ifPresent(statusBar ->
|
Optional<CentralSurfaces> cs = mCentralSurfacesOptionalLazy.get();
|
||||||
statusBar.getNotificationPanelViewController().setQsScrimEnabled(!isVertical));
|
if (cs.isPresent() && cs.get().getNotificationPanelViewController() != null) {
|
||||||
|
cs.get().getNotificationPanelViewController().setQsScrimEnabled(!isVertical);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean onNavigationTouch(View v, MotionEvent event) {
|
private boolean onNavigationTouch(View v, MotionEvent event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user