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

Commit 6167cf18 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Restrict reflection access to ValueAnimator's sDurationScale"

parents 5e021474 61fe23a1
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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.
     *
     * <p>To check whether animations are enabled system-wise use {@link #areAnimatorsEnabled()}.
     */
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    private static float sDurationScale = 1.0f;

    /**