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

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

Merge "Removing magic constant 0.1f from Overview" into ub-launcher3-master

parents 309053ff 846718a7
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -93,13 +93,10 @@ public final class Overview extends LauncherInstrumentation.VisibleContainer {
    public AllAppsFromOverview switchToAllApps() {
        verifyActiveContainer();

        // Swipe from the hotseat to near the top, e.g. 10% of the screen.
        final UiObject2 predictionRow = mLauncher.waitForLauncherObject(
                "prediction_row");
        final Point start = predictionRow.getVisibleCenter();
        final int endY = (int) (mLauncher.getDevice().getDisplayHeight() * 0.1f);
        mLauncher.swipe(
                start.x, start.y, start.x, endY);
        // Swipe from navbar to the top.
        final UiObject2 navBar = mLauncher.getSystemUiObject("navigation_bar_frame");
        final Point start = navBar.getVisibleCenter();
        mLauncher.swipe(start.x, start.y, start.x, 0);

        return new AllAppsFromOverview(mLauncher);
    }