Use bubble count for checking if bubble bar has bubbles
hasBubbles() was checking if there is a selected bubble. If there was one, it returned true. Update it to return true when bubble bar has bubble views. This aligns it with the name of the method and the javadoc. Bug: 385928447 Change-Id: If3dafb7608f71b8600dbac064b08a7f7114a361f Test: check that bubble bar is tappable Test: check that bubble bar is shown next to QSB on foldable Test: check bubble bar position with 3 button nav Flag: com.android.wm.shell.enable_bubble_bar
This commit is contained in:
1 parent
b3a6b8c33d
commit
f67cfbe6ac
1 file changed
+1
-1
@@ -481,7 +481,7 @@ public class BubbleBarViewController {
|
||||
|
||||
/** Whether the bubble bar has bubbles. */
|
||||
public boolean hasBubbles() {
|
||||
return mBubbleBarController.getSelectedBubbleKey() != null;
|
||||
return mBarView.getBubbleChildCount() > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user