Check bubble count for initial state animation

With optional overflow, we need to check for actual bubble count
before animating the bubble bar to its initial state.

Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 359403793
Test: manual
       - create first bubble on home
       - observe bubble bar animates correctly to initial state
       - add second bubble
       - observe bubble bar bounces correctly and does not slide
         in from the bottom of the screen
Change-Id: I53a34bc00b24e8a6504bcca0532054755554b9ac
This commit is contained in:
Liran Binyamin committed 2024-08-14 03:47:35 -04:00
1 parent de9b1df642
commit 229696a0e4
2 files changed
+3 -4

No files matched your search

@@ -1314,7 +1314,7 @@ public class BubbleBarView extends FrameLayout {
}
/** Returns the child count excluding the overflow if it's present. */
private int getBubbleChildCount() {
int getBubbleChildCount() {
return hasOverflow() ? getChildCount() - 1 : getChildCount();
}