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

Commit 7d6e7add authored by vadimt's avatar vadimt
Browse files

Improving error messages when swiping up to home

Change-Id: I7c230d657eacb7a386a906e1f5470a15e1fe5868
parent fed12930
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -560,11 +560,13 @@ public final class LauncherInstrumentation {
                final int finalState = mDevice.hasObject(By.pkg(getLauncherPackageName()))
                        ? NORMAL_STATE_ORDINAL : BACKGROUND_APP_STATE_ORDINAL;

                try (LauncherInstrumentation.Closable c = addContextLayer(action)) {
                    swipeToState(
                            displaySize.x / 2, displaySize.y - 1,
                            displaySize.x / 2, 0,
                            ZERO_BUTTON_STEPS_FROM_BACKGROUND_TO_HOME, finalState);
                }
            }
        } else {
            log(action = "clicking home button");
            executeAndWaitForEvent(