Merge "Do not animate sparkles when animations are off" into sc-dev

This commit is contained in:
Lucas Dupin
2021-04-08 20:14:13 +00:00
committed by Android (Google) Code Review

View File

@@ -89,7 +89,7 @@ public final class RippleAnimationSession {
}
public boolean shouldAnimateSparkle() {
return mAnimateSparkle;
return mAnimateSparkle && ValueAnimator.getDurationScale() > 0;
}
public float getSparklePhase() {