Merge "Using model-time for swiping up from workspace to all apps" into ub-launcher3-qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e60e2bab65
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user