Added return before the animation is started.

Added return statement if flag is set to false.

Bug: 335575529
Flag: com.android.wm.shell.animate_bubble_size_change
Test: BubbleBarViewAnimatorTest
Change-Id: I21aaee7b802ace87f68ba6ae84565f925010d673
This commit is contained in:
mpodolian committed 2024-06-14 19:37:25 +01:00
1 parent be4e591fac
commit ccd4b7efdd
1 file changed
+1
@@ -258,6 +258,7 @@ public class BubbleBarView extends FrameLayout {
}
if (!Flags.animateBubbleSizeChange()) {
setIconSizeAndPadding(newIconSize, newBubbleBarPadding);
return;
}
if (mScalePaddingAnimator != null && mScalePaddingAnimator.isRunning()) {
mScalePaddingAnimator.cancel();