Merge "Initialize StatusBar unfold animation with 1f progress" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cd1db9f39e
@@ -52,7 +52,7 @@ class UnfoldMoveFromCenterAnimator @JvmOverloads constructor(
|
||||
|
||||
private val animatedViews: MutableList<AnimatedView> = arrayListOf()
|
||||
|
||||
private var lastAnimationProgress: Float = 0f
|
||||
private var lastAnimationProgress: Float = 1f
|
||||
|
||||
/**
|
||||
* Updates display properties in order to calculate the initial position for the views
|
||||
|
||||
@@ -60,6 +60,15 @@ class StatusBarMoveFromCenterAnimationControllerTest : SysuiTestCase() {
|
||||
assertThat(view.translationX).isZero()
|
||||
}
|
||||
|
||||
@Test
|
||||
fun onStatusBarWidthChangedWithNoTransitionBefore_noTranslation() {
|
||||
controller.onViewsReady(arrayOf(view))
|
||||
|
||||
controller.onStatusBarWidthChanged()
|
||||
|
||||
assertThat(view.translationX).isZero()
|
||||
}
|
||||
|
||||
@Test
|
||||
fun onTransitionProgress_updatesTranslations() {
|
||||
controller.onViewsReady(arrayOf(view))
|
||||
|
||||
Reference in New Issue
Block a user