diff options
author | vadimt <vadimt@google.com> | 2019-03-29 10:57:31 -0700 |
---|---|---|
committer | Vadim Tryshev <vadimt@google.com> | 2019-03-29 17:58:58 +0000 |
commit | d8f93dcd79d16e70f642180c11d884aafb54208c (patch) | |
tree | abadd601fcd57572c39b611f49e38179e9ca0060 /tests/tapl/com/android/launcher3/tapl/AllApps.java | |
parent | 5996842fa33b7e30fcb2209ce98e3463774b4a55 (diff) | |
download | android_packages_apps_Trebuchet-d8f93dcd79d16e70f642180c11d884aafb54208c.tar.gz android_packages_apps_Trebuchet-d8f93dcd79d16e70f642180c11d884aafb54208c.tar.bz2 android_packages_apps_Trebuchet-d8f93dcd79d16e70f642180c11d884aafb54208c.zip |
Not swiping from nav bar when scrolling in all apps
Change-Id: Id1fed6ab095f23fcbc199c8925c08acac34cca3f
Diffstat (limited to 'tests/tapl/com/android/launcher3/tapl/AllApps.java')
-rw-r--r-- | tests/tapl/com/android/launcher3/tapl/AllApps.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/AllApps.java b/tests/tapl/com/android/launcher3/tapl/AllApps.java index e4dced523..98fb07f7f 100644 --- a/tests/tapl/com/android/launcher3/tapl/AllApps.java +++ b/tests/tapl/com/android/launcher3/tapl/AllApps.java @@ -64,7 +64,7 @@ public class AllApps extends LauncherInstrumentation.VisibleContainer { "want to get app icon on all apps")) { final UiObject2 allAppsContainer = verifyActiveContainer(); final UiObject2 navBar = mLauncher.waitForSystemUiObject("navigation_bar_frame"); - allAppsContainer.setGestureMargins(0, 0, 0, navBar.getVisibleBounds().height()); + allAppsContainer.setGestureMargins(0, 0, 0, navBar.getVisibleBounds().height() + 1); final BySelector appIconSelector = AppIcon.getAppIconSelector(appName, mLauncher); if (!hasClickableIcon(allAppsContainer, appIconSelector)) { scrollBackToBeginning(); @@ -141,8 +141,8 @@ public class AllApps extends LauncherInstrumentation.VisibleContainer { * Flings forward (down) and waits the fling's end. */ public void flingForward() { - try(LauncherInstrumentation.Closable c = - mLauncher.addContextLayer("want to fling forward in all apps")) { + try (LauncherInstrumentation.Closable c = + mLauncher.addContextLayer("want to fling forward in all apps")) { final UiObject2 allAppsContainer = verifyActiveContainer(); // Start the gesture in the center to avoid starting at elements near the top. allAppsContainer.setGestureMargins(0, 0, 0, mHeight / 2); @@ -156,8 +156,8 @@ public class AllApps extends LauncherInstrumentation.VisibleContainer { * Flings backward (up) and waits the fling's end. */ public void flingBackward() { - try(LauncherInstrumentation.Closable c = - mLauncher.addContextLayer("want to fling backward in all apps")) { + try (LauncherInstrumentation.Closable c = + mLauncher.addContextLayer("want to fling backward in all apps")) { final UiObject2 allAppsContainer = verifyActiveContainer(); // Start the gesture in the center, for symmetry with forward. allAppsContainer.setGestureMargins(0, mHeight / 2, 0, 0); |