Fix arrow animation when the new bubble added and old bubble removed.
The AddingAndRemoving animation now uses a newly selected bubble index and added bubble index arguments. Test: BubbleAnimatorTest Test: Manual. Enable optional overflow bubble. Create a bubble bar with overflow containing a single bubble. Open the overflow menu and click an overflow bubble icon. Observe that a new bubble is added and immediately expands while the overflow bubble is collapsing. Observe that the arrow animates to the new bubble's position. Test: Manual. Have few bubbles in the bubble bar. Collapse any bubble. Observe arrow animated correctly to the newly selected bubble position. Flag: com.android.wm.shell.enable_bubble_bar Bug: 359952121 Change-Id: I8321e2f532189e7599b029083199e034e38080e3
This commit is contained in:
1 parent
8b3f1e1c3f
commit
631da72a2a
3 files changed
+83
-37
No files matched your search
+3
-1
@@ -94,7 +94,9 @@ class BubbleAnimatorTest {
|
||||
InstrumentationRegistry.getInstrumentation().runOnMainSync {
|
||||
bubbleAnimator.animateNewAndRemoveOld(
|
||||
selectedBubbleIndex = 3,
|
||||
removedBubbleIndex = 2,
|
||||
newlySelectedBubbleIndex = 2,
|
||||
removedBubbleIndex = 1,
|
||||
addedBubbleIndex = 3,
|
||||
listener,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user