diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java index 2e3c701b82..3af0c982d6 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java @@ -145,6 +145,11 @@ public class BubbleBarViewController { return mBarView.getVisibility() == VISIBLE; } + /** Whether the bubble bar has bubbles. */ + public boolean hasBubbles() { + return mBubbleBarController.getSelectedBubbleKey() != null; + } + /** * The bounds of the bubble bar. */ diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleStashController.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleStashController.java index bd660be49d..8af4ff94d8 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleStashController.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleStashController.java @@ -126,8 +126,8 @@ public class BubbleStashController { if (mBubblesShowingOnHome != onHome) { mBubblesShowingOnHome = onHome; - if (!mBarViewController.isBubbleBarVisible()) { - // if the bubble bar is not visible, there are no bubbles, so just return. + if (!mBarViewController.hasBubbles()) { + // if there are no bubbles, there's nothing to show, so just return. return; }