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

Commit ef558648 authored by Winson Chung's avatar Winson Chung
Browse files

Bump time to scroll to last visible row (affects jank/perf tests)

- Regression from ag/9592395, bump the time of scrolling to the
  last visible row slightly to prevent a fling

Bug: 141484300
Change-Id: I41c041fe591aceebc63b7e869a705164babb09ea
parent b7d463e7
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) {