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

Commit 498a7ed1 authored by Shane's avatar Shane
Browse files

Fix AnimationUtils getExpectedPresentationTimeNanos

Fix AnimationUtils.getExpectedPresentationTimeNanos(). If the flag is
not enabled, it should return the time in nanoseconds instead of
milliseconds.

Bug: 322358548
Test: atest AnimationUtilsTest
Change-Id: I13b8a96ff7467559284fbbea0b21ca7babc58550
parent 23e028aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ public class AnimationUtils {
    @FlaggedApi(FLAG_EXPECTED_PRESENTATION_TIME_READ_ONLY)
    public static long getExpectedPresentationTimeNanos() {
        if (!sExpectedPresentationTimeFlagValue) {
            return SystemClock.uptimeMillis();
            return SystemClock.uptimeMillis() * TimeUtils.NANOS_PER_MS;
        }

        AnimationState state = sAnimationState.get();