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

Commit 5a91a37c authored by Nick Chameyev's avatar Nick Chameyev Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17884335



Change-Id: I160316e51b224e377768d9f6e22e2bc4cf02569f
Ignore-AOSP-First: this is an automerge
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 6f98148f cd1db9f3
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))