diff --git a/core/java/android/animation/ValueAnimator.java b/core/java/android/animation/ValueAnimator.java index a0464dfac1f4f..ebb03e765a476 100644 --- a/core/java/android/animation/ValueAnimator.java +++ b/core/java/android/animation/ValueAnimator.java @@ -20,6 +20,7 @@ import android.annotation.CallSuper; import android.annotation.IntDef; import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; +import android.os.Build; import android.os.Looper; import android.os.Trace; import android.util.AndroidRuntimeException; @@ -76,7 +77,13 @@ public class ValueAnimator extends Animator implements AnimationHandler.Animatio /** * Internal constants */ - @UnsupportedAppUsage + + /** + * System-wide animation scale. + * + *
To check whether animations are enabled system-wise use {@link #areAnimatorsEnabled()}. + */ + @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) private static float sDurationScale = 1.0f; /**