diff options
| author | 2024-10-25 09:24:08 +0000 | |
|---|---|---|
| committer | 2024-10-25 09:24:58 +0000 | |
| commit | 01e234964d0f5fa984cac1e597ad026fd6a9c629 (patch) | |
| tree | 5c0543c814b5949e1da13f4b8708f7a7b8ce18db | |
| parent | dded1a46a0e8f3c6237cd3f3ec97473a6abd8985 (diff) | |
Set frametime of BackEvent to 0 in legacy constructor
Bug: 375087364
Test: StatusBarKeyguardViewManagerTest
Flag: EXEMPT bugfix
Change-Id: Ic5a2e1c465e0c0c89f5f9d0bf46543f660807c3d
| -rw-r--r-- | core/java/android/window/BackEvent.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/java/android/window/BackEvent.java b/core/java/android/window/BackEvent.java index 1b9235b21369..89b38d8048e5 100644 --- a/core/java/android/window/BackEvent.java +++ b/core/java/android/window/BackEvent.java @@ -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; } /** |