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

Commit 22d8ff6f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "StatusBar unfold transition: reset translations when rotating" into sc-v2-dev

parents e5a6127d c1074125
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -63,5 +63,11 @@ class StatusBarMoveFromCenterAnimationController @Inject constructor(
        override fun onTransitionProgress(progress: Float) {
            moveFromCenterAnimator?.onTransitionProgress(progress)
        }

        override fun onTransitionFinished() {
            // Reset translations when transition is stopped/cancelled
            // (e.g. the transition could be cancelled mid-way when rotating the screen)
            moveFromCenterAnimator?.onTransitionProgress(1f)
        }
    }
}