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

Commit 02fb3531 authored by vadimt's avatar vadimt
Browse files

TAPL: avoiding negative final coordinate of swipe-to-all apps

Change-Id: I15c2bf44b7fe2e2ac2fc85db02069441b2aeb807
parent fc65c357
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -58,9 +58,13 @@ public final class Workspace extends Home {
            verifyActiveContainer();
            final UiObject2 hotseat = mHotseat;
            final Point start = hotseat.getVisibleCenter();
            start.y = hotseat.getVisibleBounds().bottom - 1;
            final int swipeHeight = mLauncher.getTestInfo(
                    TestProtocol.REQUEST_HOME_TO_ALL_APPS_SWIPE_HEIGHT).
                    getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD);
            LauncherInstrumentation.log(
                    "switchToAllApps: swipeHeight = " + swipeHeight + ", slop = "
                            + mLauncher.getTouchSlop());
            mLauncher.swipe(
                    start.x,
                    start.y,