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

Commit 3220e952 authored by Alex Chau's avatar Alex Chau
Browse files

Avoid scrolling within edgeSensitivityWidth in overview tests

Fix: 202155383
Test: TaplTestsQuickstep.testOverviewActions with 1 task in overview
Change-Id: If137da179d93c9dcf413f431bf437083bfd0e737
parent 3aae069e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -57,7 +57,8 @@ public class BaseOverview extends LauncherInstrumentation.VisibleContainer {
                     mLauncher.addContextLayer("want to fling forward in overview")) {
            LauncherInstrumentation.log("Overview.flingForward before fling");
            final UiObject2 overview = verifyActiveContainer();
            final int leftMargin = mLauncher.getTargetInsets().left;
            final int leftMargin =
                    mLauncher.getTargetInsets().left + mLauncher.getEdgeSensitivityWidth();
            mLauncher.scroll(
                    overview, Direction.LEFT, new Rect(leftMargin + 1, 0, 0, 0), 20, false);
            try (LauncherInstrumentation.Closable c2 =
@@ -97,7 +98,8 @@ public class BaseOverview extends LauncherInstrumentation.VisibleContainer {
                     mLauncher.addContextLayer("want to fling backward in overview")) {
            LauncherInstrumentation.log("Overview.flingBackward before fling");
            final UiObject2 overview = verifyActiveContainer();
            final int rightMargin = mLauncher.getTargetInsets().right;
            final int rightMargin =
                    mLauncher.getTargetInsets().right + mLauncher.getEdgeSensitivityWidth();
            mLauncher.scroll(
                    overview, Direction.RIGHT, new Rect(0, 0, rightMargin + 1, 0), 20, false);
            try (LauncherInstrumentation.Closable c2 =