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

Commit 439036a9 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Do not animate sparkles when animations are off

Bug: 184746725
Test: manual
Test: car CTS
Change-Id: I5c25678760f2f76cda8430c33b4c75d14ae43903
parent 9759067e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ public final class RippleAnimationSession {
    }

    public boolean shouldAnimateSparkle() {
        return mAnimateSparkle;
        return mAnimateSparkle && ValueAnimator.getDurationScale() > 0;
    }

    public float getSparklePhase() {