Merge "Fix NPE" into tm-qpr-dev am: 7ade0dddff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20727866 Change-Id: Id89fec8482d40ecc9eab64161e9d58fb542f048a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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