summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-09-26 13:22:10 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-09-26 13:22:10 -0700
commit7601d12a912a17b88bd7264e7f92aca0bead69db (patch)
tree15e5c03a48a3153564b145fa3aceccfd73c4e88b /tests
parentecee887d1a43a12253f51a689eeac19a9c5a1f89 (diff)
parent46f3999fb3edf447868ec806bfba433e8797ca11 (diff)
downloadandroid_packages_apps_Trebuchet-7601d12a912a17b88bd7264e7f92aca0bead69db.tar.gz
android_packages_apps_Trebuchet-7601d12a912a17b88bd7264e7f92aca0bead69db.tar.bz2
android_packages_apps_Trebuchet-7601d12a912a17b88bd7264e7f92aca0bead69db.zip
Avoiding swiping down from the from the extended touchable region around the notch in Widgets
am: 46f3999fb3 Change-Id: I59ad5cd711326caa64deb819083a77174338ef71
Diffstat (limited to 'tests')
-rw-r--r--tests/tapl/com/android/launcher3/tapl/Widgets.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/Widgets.java b/tests/tapl/com/android/launcher3/tapl/Widgets.java
index 2a04d46cb..54f730e25 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();
}