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

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

Merge "Using different swipe length to switch to Overview." into ub-launcher3-master

parents 900f1443 a31f7eb6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ public class Background extends LauncherInstrumentation.VisibleContainer {
            final int height = mLauncher.getDevice().getDisplayHeight();
            final UiObject2 navBar = mLauncher.getSystemUiObject("navigation_bar_frame");

            int swipeLength = Math.round(100 * mLauncher.getDisplayDensity());
            int swipeLength = Math.round(getSwipeLength() * mLauncher.getDisplayDensity());
            mLauncher.swipe(
                    navBar.getVisibleBounds().centerX(), navBar.getVisibleBounds().centerY(),
                    navBar.getVisibleBounds().centerX(), height - swipeLength,
@@ -71,4 +71,8 @@ public class Background extends LauncherInstrumentation.VisibleContainer {
            mLauncher.getSystemUiObject("recent_apps").click();
        }
    }

    protected int getSwipeLength() {
        return 200;
    }
}
+5 −0
Original line number Diff line number Diff line
@@ -160,4 +160,9 @@ public final class Workspace extends Home {
        mLauncher.getDevice().pressKeyCode(KeyEvent.KEYCODE_W, KeyEvent.META_CTRL_ON);
        return new Widgets(mLauncher);
    }

    @Override
    protected int getSwipeLength() {
        return 100;
    }
}
 No newline at end of file