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

Commit e60e2bab authored by Vadim Tryshev's avatar Vadim Tryshev Committed by Android (Google) Code Review
Browse files

Merge "Using model-time for swiping up from workspace to all apps" into ub-launcher3-qt-dev

parents 66b82f5c d96bda55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -617,7 +617,7 @@ public final class LauncherInstrumentation {

    // Inject a swipe gesture. Inject exactly 'steps' motion points, incrementing event time by a
    // fixed interval each time.
    private void swipeWithModelTime(int startX, int startY, int endX, int endY, int steps) {
    void swipeWithModelTime(int startX, int startY, int endX, int endY, int steps) {
        final long downTime = SystemClock.uptimeMillis();
        final Point start = new Point(startX, startY);
        final Point end = new Point(endX, endY);
+2 −1
Original line number Diff line number Diff line
@@ -65,7 +65,8 @@ public final class Workspace extends Home {
            LauncherInstrumentation.log(
                    "switchToAllApps: swipeHeight = " + swipeHeight + ", slop = "
                            + mLauncher.getTouchSlop());
            mLauncher.swipe(

            mLauncher.swipeWithModelTime(
                    start.x,
                    start.y,
                    start.x,