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

Commit a793b730 authored by Shane's avatar Shane
Browse files

Remove unused ChangeId in AnimationUtils

Remove unused ChangeId in AnimationUtils that leads to a bug.
Originally, I planned to apply Compat Framework to gate the code change
for VRR, but I switched to Trunk Stable Flag once it's ready.

I will revisit the usage Compat Framework later if it would benefit our
project.

Bug: 307474944
Test: atest AnimationUtilsTest
Change-Id: I9ebcf622acae3c14b8b1c95e02224d01289464a6
parent 779bb8ef
Loading
Loading
Loading
Loading
+0 −15
Original line number Original line Diff line number Diff line
@@ -23,9 +23,6 @@ import android.annotation.AnimRes;
import android.annotation.FlaggedApi;
import android.annotation.FlaggedApi;
import android.annotation.InterpolatorRes;
import android.annotation.InterpolatorRes;
import android.annotation.TestApi;
import android.annotation.TestApi;
import android.compat.annotation.ChangeId;
import android.compat.annotation.EnabledSince;
import android.compat.annotation.Overridable;
import android.compat.annotation.UnsupportedAppUsage;
import android.compat.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.Resources;
@@ -55,18 +52,6 @@ public class AnimationUtils {
    private static final int TOGETHER = 0;
    private static final int TOGETHER = 0;
    private static final int SEQUENTIALLY = 1;
    private static final int SEQUENTIALLY = 1;


     /**
     * For apps targeting {@link android.os.Build.VERSION_CODES#VANILLA_ICE_CREAM} and above,
     * this change ID enables to use expectedPresentationTime instead of the frameTime
     * for the frame start time .
     *
     * @hide
     */
    @ChangeId
    @EnabledSince(targetSdkVersion = android.os.Build.VERSION_CODES.VANILLA_ICE_CREAM)
    @Overridable
    public static final long OVERRIDE_ENABLE_EXPECTED_PRSENTATION_TIME = 278730197L;

    private static boolean sExpectedPresentationTimeFlagValue;
    private static boolean sExpectedPresentationTimeFlagValue;
    static {
    static {
        sExpectedPresentationTimeFlagValue = expectedPresentationTimeReadOnly();
        sExpectedPresentationTimeFlagValue = expectedPresentationTimeReadOnly();