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

Commit 0868d999 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Improving error messages when swiping up to home" into ub-launcher3-master

parents 0cdb388a 7d6e7add
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(