Merge "Don't show the bubble bar when it is empty" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7dd280eef3
@@ -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