Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +33 −12 Original line number Diff line number Diff line Loading @@ -183,6 +183,12 @@ public class BubbleController implements ConfigurationController.ConfigurationLi // Only load overflow data from disk once private boolean mOverflowDataLoaded = false; /** * When the shade status changes to SHADE (from anything but SHADE, like LOCKED) we'll select * this bubble and expand the stack. */ @Nullable private NotificationEntry mNotifEntryToExpandOnShadeUnlock; private final NotificationInterruptStateProvider mNotificationInterruptStateProvider; private IStatusBarService mBarService; private WindowManager mWindowManager; Loading Loading @@ -295,6 +301,12 @@ public class BubbleController implements ConfigurationController.ConfigurationLi if (shouldCollapse) { collapseStack(); } if (mNotifEntryToExpandOnShadeUnlock != null) { expandStackAndSelectBubble(mNotifEntryToExpandOnShadeUnlock); mNotifEntryToExpandOnShadeUnlock = null; } updateStack(); } } Loading Loading @@ -935,6 +947,9 @@ public class BubbleController implements ConfigurationController.ConfigurationLi * @param entry the notification for the bubble to be selected */ public void expandStackAndSelectBubble(NotificationEntry entry) { if (mStatusBarStateListener.getCurrentState() == SHADE) { mNotifEntryToExpandOnShadeUnlock = null; String key = entry.getKey(); Bubble bubble = mBubbleData.getBubbleInStackWithKey(key); if (bubble != null) { Loading @@ -950,6 +965,12 @@ public class BubbleController implements ConfigurationController.ConfigurationLi setIsBubble(entry, true /* isBubble */, true /* autoExpand */); } } } else { // Wait until we're unlocked to expand, so that the user can see the expand animation // and also to work around bugs with expansion animation + shade unlock happening at the // same time. mNotifEntryToExpandOnShadeUnlock = entry; } } /** Loading Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +33 −12 Original line number Diff line number Diff line Loading @@ -183,6 +183,12 @@ public class BubbleController implements ConfigurationController.ConfigurationLi // Only load overflow data from disk once private boolean mOverflowDataLoaded = false; /** * When the shade status changes to SHADE (from anything but SHADE, like LOCKED) we'll select * this bubble and expand the stack. */ @Nullable private NotificationEntry mNotifEntryToExpandOnShadeUnlock; private final NotificationInterruptStateProvider mNotificationInterruptStateProvider; private IStatusBarService mBarService; private WindowManager mWindowManager; Loading Loading @@ -295,6 +301,12 @@ public class BubbleController implements ConfigurationController.ConfigurationLi if (shouldCollapse) { collapseStack(); } if (mNotifEntryToExpandOnShadeUnlock != null) { expandStackAndSelectBubble(mNotifEntryToExpandOnShadeUnlock); mNotifEntryToExpandOnShadeUnlock = null; } updateStack(); } } Loading Loading @@ -935,6 +947,9 @@ public class BubbleController implements ConfigurationController.ConfigurationLi * @param entry the notification for the bubble to be selected */ public void expandStackAndSelectBubble(NotificationEntry entry) { if (mStatusBarStateListener.getCurrentState() == SHADE) { mNotifEntryToExpandOnShadeUnlock = null; String key = entry.getKey(); Bubble bubble = mBubbleData.getBubbleInStackWithKey(key); if (bubble != null) { Loading @@ -950,6 +965,12 @@ public class BubbleController implements ConfigurationController.ConfigurationLi setIsBubble(entry, true /* isBubble */, true /* autoExpand */); } } } else { // Wait until we're unlocked to expand, so that the user can see the expand animation // and also to work around bugs with expansion animation + shade unlock happening at the // same time. mNotifEntryToExpandOnShadeUnlock = entry; } } /** Loading