Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd1db9f3 authored by Nick Chameyev's avatar Nick Chameyev Committed by Android (Google) Code Review
Browse files

Merge "Initialize StatusBar unfold animation with 1f progress" into tm-dev

parents 6d4b050f 86054bee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+9 −0
Original line number Diff line number Diff line
@@ -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))