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

Commit d1e90a1b authored by vadimt's avatar vadimt
Browse files

Temporarily going home from an app via device.pressHome

The gesture will be restored once we have a UI automation-stable
gesture detection on the Launcher side.

Change-Id: I94cd52b61cd65961ac471d0e4ae0db1fc766a66b
parent 09b91447
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -347,12 +347,7 @@ public final class LauncherInstrumentation {
                log(action = "0-button: from another app");
                assertTrue("Launcher is visible, don't know how to go home",
                        !mDevice.hasObject(By.pkg(getLauncherPackageName())));
                final UiObject2 navBar = waitForSystemUiObject("navigation_bar_frame");

                swipe(
                        navBar.getVisibleBounds().centerX(), navBar.getVisibleBounds().centerY(),
                        navBar.getVisibleBounds().centerX(), 0,
                        BACKGROUND_APP_STATE_ORDINAL, ZERO_BUTTON_STEPS_FROM_BACKGROUND_TO_HOME);
                mDevice.pressHome();
            }
        } else {
            log(action = "clicking home button");