Merge "Check that the bubble bar has bubbles before showing it" into udc-qpr-dev am: d0121222a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24024256 Change-Id: Id5be73c1a93b5c8e047993c46f25d302fd31b384 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user