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

Commit c34f1b09 authored by John Reck's avatar John Reck
Browse files

Fix RippleDrawable exit animation

Bug: 25602850

The exit-out animation doesn't want to animate from the current
value, but rather the final value of the exit-in animation

Change-Id: I1cd12b0653b5241c6e21ef1cca86b0a83ce9c5a2
parent 8b40491b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -139,6 +139,7 @@ class RippleBackground extends RippleComponent {
        exit.setInterpolator(LINEAR_INTERPOLATOR);
        exit.setDuration(OPACITY_EXIT_DURATION);
        exit.setStartDelay(fastEnterDuration);
        exit.setStartValue(targetAlpha);
        set.add(exit);

        // Linear "fast" enter based on current opacity.