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

This commit is contained in:
Vadim Tryshev
2019-05-14 22:35:11 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 2 deletions
@@ -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);
@@ -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,