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

Commit 7601d12a authored by vadimt's avatar vadimt Committed by android-build-merger
Browse files

Avoiding swiping down from the from the extended touchable region around the notch in Widgets

am: 46f3999f

Change-Id: I59ad5cd711326caa64deb819083a77174338ef71
parents ecee887d 46f3999f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -69,7 +69,12 @@ public final class Widgets extends LauncherInstrumentation.VisibleContainer {
                "want to fling backwards in widgets")) {
            LauncherInstrumentation.log("Widgets.flingBackward enter");
            final UiObject2 widgetsContainer = verifyActiveContainer();
            mLauncher.scroll(widgetsContainer, Direction.UP, 1f, null, FLING_STEPS);
            mLauncher.scroll(
                    widgetsContainer,
                    Direction.UP,
                    1f,
                    new Rect(0, 0, widgetsContainer.getVisibleBounds().width(), 0),
                    FLING_STEPS);
            try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("flung back")) {
                verifyActiveContainer();
            }