Merge "Fix handle color when interrupting the animation" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
8b102fe820
+1
-1
@@ -531,7 +531,7 @@ constructor(
|
||||
bubbleStashController.getStashedHandlePhysicsAnimator().cancelIfRunning()
|
||||
resetBubbleBarPropertiesOnInterrupt()
|
||||
bubbleStashController.onNewBubbleAnimationInterrupted(
|
||||
/* isStashed= */ bubbleBarView.alpha == 0f,
|
||||
/* isStashed= */ bubbleStashController.isStashed,
|
||||
bubbleBarView.translationY,
|
||||
)
|
||||
}
|
||||
|
||||
+2
-1
@@ -240,6 +240,7 @@ class BubbleBarViewAnimatorTest {
|
||||
// verify the hide bubble animation is pending
|
||||
assertThat(animatorScheduler.delayedBlock).isNotNull()
|
||||
|
||||
whenever(bubbleStashController.isStashed).thenReturn(true)
|
||||
InstrumentationRegistry.getInstrumentation().runOnMainSync {
|
||||
animator.onStashStateChangingWhileAnimating()
|
||||
}
|
||||
@@ -249,7 +250,7 @@ class BubbleBarViewAnimatorTest {
|
||||
assertThat(animator.isAnimating).isFalse()
|
||||
assertThat(bubbleBarView.scaleX).isEqualTo(1)
|
||||
assertThat(bubbleBarView.scaleY).isEqualTo(1)
|
||||
verify(bubbleStashController).onNewBubbleAnimationInterrupted(any(), any())
|
||||
verify(bubbleStashController).onNewBubbleAnimationInterrupted(eq(true), any())
|
||||
|
||||
// PhysicsAnimatorTestUtils posts the cancellation to the main thread so we need to wait
|
||||
// again
|
||||
|
||||
Reference in New Issue
Block a user