Swiping from Overview to All Apps from apps_view
Used to swipe from an app icon, but in the lab, there were icons at weird positions. Change-Id: I271dd800f1b714997282512eb64ebc5d34b24f13
This commit is contained in:
@@ -51,10 +51,9 @@ public final class Overview extends BaseOverview {
|
||||
|
||||
// Swipe from an app icon to the top.
|
||||
LauncherInstrumentation.log("Overview.switchToAllApps before swipe");
|
||||
final UiObject2 appIcon = mLauncher.waitForLauncherObjectByClass(
|
||||
"android.widget.TextView");
|
||||
final UiObject2 allApps = mLauncher.waitForLauncherObject("apps_view");
|
||||
mLauncher.swipeToState(mLauncher.getDevice().getDisplayWidth() / 2,
|
||||
appIcon.getVisibleBounds().centerY(),
|
||||
allApps.getVisibleBounds().top,
|
||||
mLauncher.getDevice().getDisplayWidth() / 2,
|
||||
0, 50, ALL_APPS_STATE_ORDINAL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user