summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeff DeCew <jeffdq@google.com> 2024-02-28 21:39:09 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-02-28 21:39:09 +0000
commitab6c8dbb97fdabb7bd36222c3800bfcc0ab9cbaf (patch)
treed148e4f6133c0a571e7c9ea9420ab91818240420
parent0fb697a89fbbbeec83bcc67eb4bbb2a8bf2925be (diff)
parentd075b439db1bd87ef0c98dc180885160ff54481e (diff)
Merge "[flexiglass] Fix crash in NPVC when notification alerts" into main
-rw-r--r--packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
index 7b330b0f3803..fd3c480a334f 100644
--- a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
+++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
@@ -3074,7 +3074,9 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
}
private void onClosingFinished() {
- mOpenCloseListener.onClosingFinished();
+ if (mOpenCloseListener != null) {
+ mOpenCloseListener.onClosingFinished();
+ }
setClosingWithAlphaFadeout(false);
mMediaHierarchyManager.closeGuts();
}
@@ -4705,7 +4707,9 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
if (mSplitShadeEnabled && !isKeyguardShowing()) {
mQsController.setExpandImmediate(true);
}
- mOpenCloseListener.onOpenStarted();
+ if (mOpenCloseListener != null) {
+ mOpenCloseListener.onOpenStarted();
+ }
}
if (state == STATE_CLOSED) {
mQsController.setExpandImmediate(false);