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

Commit faa693a8 authored by Anton Potapov's avatar Anton Potapov
Browse files

Use suspendAnimate to cancel the previous animaiton when the next event arrives.

Flag: com.android.systemui.volume_redesign
Fixes: 398130553
Test: atest VolumeDialogScreenshotTest
Test: manual on the foldable. Dialog appears and disappears with an
animation

Change-Id: I29e83cdf39237cdf5de8899d125a866bdf1d6bc3
parent 899253a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ constructor(
                        junkListener?.let(animation::removeUpdateListener)
                        junkListener =
                            jankListenerFactory.show(view).also(animation::addUpdateListener)
                        animation.animateToFinalPosition(FRACTION_SHOW)
                        animation.suspendAnimate(FRACTION_SHOW)
                    }
                    is VolumeDialogVisibilityModel.Dismissed -> {
                        tracer.traceVisibilityEnd(it)