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

Commit 55042c5b authored by Vadim Tryshev's avatar Vadim Tryshev Committed by Android (Google) Code Review
Browse files

Merge "TAPL: avoiding negative final coordinate of swipe-to-all apps" into ub-launcher3-qt-dev

parents 08ff6f58 02fb3531
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,