Fix bubble bar flicker in initial animation
When the first bubble animates in we make the bubble bar visible
before translating it below the screen to prepare for the spring
animation. This change defers updating the visibility letting the
animator notify when it's safe to update visibility.
Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 382296842
Test: atest BubbleBarViewAnimatorTest
Test: manual
- dismiss bubble bar
- send new bubble
- observe bubble bar does not flicker
Change-Id: Ib611771dd9f315ab57ef00f8f6cb982b8b88ea73
This commit is contained in:
1 parent
495fe1d255
commit
77827d3167
4 files changed
+61
-26
No files matched your search
@@ -170,7 +170,8 @@ public class BubbleBarViewController {
|
||||
mBubbleBarContainer, createFlyoutPositioner(), createFlyoutCallbacks());
|
||||
mBubbleBarViewAnimator = new BubbleBarViewAnimator(
|
||||
mBarView, mBubbleStashController, mBubbleBarFlyoutController,
|
||||
createBubbleBarParentViewController(), mBubbleBarController::showExpandedView);
|
||||
createBubbleBarParentViewController(), mBubbleBarController::showExpandedView,
|
||||
() -> setHiddenForBubbles(false));
|
||||
mTaskbarViewPropertiesProvider = taskbarViewPropertiesProvider;
|
||||
onBubbleBarConfigurationChanged(/* animate= */ false);
|
||||
mActivity.addOnDeviceProfileChangeListener(
|
||||
|
||||
Reference in new issue
Block a user