From 46f3999fb3edf447868ec806bfba433e8797ca11 Mon Sep 17 00:00:00 2001 From: vadimt Date: Thu, 26 Sep 2019 12:30:25 -0700 Subject: [PATCH] Avoiding swiping down from the from the extended touchable region around the notch in Widgets Bug: 141697444 Change-Id: I8edd6a05e34c8a7e91dab1757938d40efffb766f --- tests/tapl/com/android/launcher3/tapl/Widgets.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/tapl/com/android/launcher3/tapl/Widgets.java b/tests/tapl/com/android/launcher3/tapl/Widgets.java index 2a04d46cb1..54f730e258 100644 --- a/tests/tapl/com/android/launcher3/tapl/Widgets.java +++ b/tests/tapl/com/android/launcher3/tapl/Widgets.java @@ -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(); }