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

Commit 01e23496 authored by Johannes Gallmann's avatar Johannes Gallmann
Browse files

Set frametime of BackEvent to 0 in legacy constructor

Bug: 375087364
Test: StatusBarKeyguardViewManagerTest
Flag: EXEMPT bugfix
Change-Id: Ic5a2e1c465e0c0c89f5f9d0bf46543f660807c3d
parent dded1a46
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ import static com.android.window.flags.Flags.predictiveBackTimestampApi;
import android.annotation.FlaggedApi;
import android.annotation.FloatRange;
import android.annotation.IntDef;
import android.util.TimeUtils;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -76,7 +75,7 @@ public final class BackEvent {
    }

    /**
     * Creates a new {@link BackEvent} instance with the current uptime as frame time.
     * Creates a new {@link BackEvent} instance with a frame time of 0.
     *
     * @param touchX Absolute X location of the touch point of this event.
     * @param touchY Absolute Y location of the touch point of this event.
@@ -88,7 +87,7 @@ public final class BackEvent {
        mTouchY = touchY;
        mProgress = progress;
        mSwipeEdge = swipeEdge;
        mFrameTimeMillis = System.nanoTime() / TimeUtils.NANOS_PER_MS;
        mFrameTimeMillis = 0;
    }

    /**