DO NOT MERGE Adding additional null checks for BubbleController.
Bug: 145155858 Test: Manual Change-Id: I1f68423816aaa48a0040623488ee69237b372149
This commit is contained in:
@@ -2638,7 +2638,7 @@ public class StatusBar extends SystemUI implements DemoMode,
|
|||||||
if (mRemoteInputManager.getController() != null) {
|
if (mRemoteInputManager.getController() != null) {
|
||||||
mRemoteInputManager.getController().closeRemoteInputs();
|
mRemoteInputManager.getController().closeRemoteInputs();
|
||||||
}
|
}
|
||||||
if (mBubbleController.isStackExpanded()) {
|
if (mBubbleController != null && mBubbleController.isStackExpanded()) {
|
||||||
mBubbleController.collapseStack();
|
mBubbleController.collapseStack();
|
||||||
}
|
}
|
||||||
if (mLockscreenUserManager.isCurrentProfile(getSendingUserId())) {
|
if (mLockscreenUserManager.isCurrentProfile(getSendingUserId())) {
|
||||||
@@ -2654,7 +2654,7 @@ public class StatusBar extends SystemUI implements DemoMode,
|
|||||||
if (mStatusBarWindowController != null) {
|
if (mStatusBarWindowController != null) {
|
||||||
mStatusBarWindowController.setNotTouchable(false);
|
mStatusBarWindowController.setNotTouchable(false);
|
||||||
}
|
}
|
||||||
if (mBubbleController.isStackExpanded()) {
|
if (mBubbleController != null && mBubbleController.isStackExpanded()) {
|
||||||
mBubbleController.collapseStack();
|
mBubbleController.collapseStack();
|
||||||
}
|
}
|
||||||
finishBarAnimations();
|
finishBarAnimations();
|
||||||
@@ -3386,7 +3386,9 @@ public class StatusBar extends SystemUI implements DemoMode,
|
|||||||
if (mNotificationPanel.canPanelBeCollapsed()) {
|
if (mNotificationPanel.canPanelBeCollapsed()) {
|
||||||
animateCollapsePanels();
|
animateCollapsePanels();
|
||||||
} else {
|
} else {
|
||||||
mBubbleController.performBackPressIfNeeded();
|
if (mBubbleController != null) {
|
||||||
|
mBubbleController.performBackPressIfNeeded();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user