Merge "Bump time to scroll to last visible row (affects jank/perf tests)" into ub-launcher3-master
This commit is contained in:
committed by
Android (Google) Code Review
commit
efefa59f8c
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user