Merge "Don't show the bubble bar when it is empty" into udc-qpr-dev am: 7dd280eef3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24024252 Change-Id: I7c6a545a1fc71ccbb74d97f702a6a9bc04852ac0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -125,6 +125,12 @@ public class BubbleStashController {
|
||||
public void setBubblesShowingOnHome(boolean onHome) {
|
||||
if (mBubblesShowingOnHome != onHome) {
|
||||
mBubblesShowingOnHome = onHome;
|
||||
|
||||
if (!mBarViewController.isBubbleBarVisible()) {
|
||||
// if the bubble bar is not visible, there are no bubbles, so just return.
|
||||
return;
|
||||
}
|
||||
|
||||
if (mBubblesShowingOnHome) {
|
||||
showBubbleBar(/* expanded= */ false);
|
||||
// When transitioning from app to home the stash animator may already have been
|
||||
|
||||
Reference in New Issue
Block a user