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

Commit e3a28902 authored by Darrell Shi's avatar Darrell Shi Committed by Android (Google) Code Review
Browse files

Merge "Remove delayed snap scene when animation starts" into main

parents 268c7d64 3ffff3b3
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -39,12 +39,6 @@ class CommunalTransitionAnimatorController(

    override fun onTransitionAnimationStart(isExpandingFullyAbove: Boolean) {
        delegate.onTransitionAnimationStart(isExpandingFullyAbove)
        // TODO(b/330672236): move this to onTransitionAnimationEnd() without the delay.
        communalSceneInteractor.snapToScene(
            CommunalScenes.Blank,
            "CommunalTransitionAnimatorController",
            ActivityTransitionAnimator.TIMINGS.totalDuration
        )
    }

    override fun onTransitionAnimationCancelled(newKeyguardOccludedState: Boolean?) {
@@ -55,5 +49,9 @@ class CommunalTransitionAnimatorController(
    override fun onTransitionAnimationEnd(isExpandingFullyAbove: Boolean) {
        communalSceneInteractor.setIsLaunchingWidget(false)
        delegate.onTransitionAnimationEnd(isExpandingFullyAbove)
        communalSceneInteractor.snapToScene(
            CommunalScenes.Blank,
            "CommunalTransitionAnimatorController",
        )
    }
}