Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8a98a16 authored by vadimt's avatar vadimt
Browse files

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
parent 55d1e44c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);