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

Commit efefa59f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Bump time to scroll to last visible row (affects jank/perf tests)" into ub-launcher3-master

parents 0e7fe1a8 ef558648
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -791,6 +791,8 @@ public final class LauncherInstrumentation {
        final int distance = gestureStart - container.getVisibleBounds().top - topPadding;
        final int bottomMargin = container.getVisibleBounds().height() - distance;

        // TODO: Make the gesture steps dependent on the distance so that it can run for various
        //       screen sizes
        scroll(
                container,
                Direction.DOWN,
@@ -799,7 +801,7 @@ public final class LauncherInstrumentation {
                        0,
                        0,
                        Math.max(bottomMargin, getBottomGestureMargin(container))),
                70);
                80);
    }

    void scroll(UiObject2 container, Direction direction, Rect margins, int steps) {