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

Commit 1a4787e8 authored by Johannes Gallmann's avatar Johannes Gallmann Committed by Android (Google) Code Review
Browse files

Merge "Set frametime of BackEvent to 0 in legacy constructor" into main

parents ec351bf7 01e23496
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -23,7 +23,6 @@ import static com.android.window.flags.Flags.predictiveBackTimestampApi;
import android.annotation.FlaggedApi;
import android.annotation.FlaggedApi;
import android.annotation.FloatRange;
import android.annotation.FloatRange;
import android.annotation.IntDef;
import android.annotation.IntDef;
import android.util.TimeUtils;


import java.lang.annotation.Retention;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
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 touchX Absolute X location of the touch point of this event.
     * @param touchY Absolute Y 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;
        mTouchY = touchY;
        mProgress = progress;
        mProgress = progress;
        mSwipeEdge = swipeEdge;
        mSwipeEdge = swipeEdge;
        mFrameTimeMillis = System.nanoTime() / TimeUtils.NANOS_PER_MS;
        mFrameTimeMillis = 0;
    }
    }


    /**
    /**