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