From a3c0a082f9fe84e007596646e544371fc4df277f Mon Sep 17 00:00:00 2001 From: vadimt Date: Thu, 2 May 2019 18:38:05 -0700 Subject: [PATCH] Temporarily using magic constant to avoid closing all apps by scrolling Change-Id: Ic99c8ad85525e37563b3f1debb125073055ac2f0 --- tests/tapl/com/android/launcher3/tapl/AllApps.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tapl/com/android/launcher3/tapl/AllApps.java b/tests/tapl/com/android/launcher3/tapl/AllApps.java index 4685c7db2c..19c5047e00 100644 --- a/tests/tapl/com/android/launcher3/tapl/AllApps.java +++ b/tests/tapl/com/android/launcher3/tapl/AllApps.java @@ -69,6 +69,8 @@ public class AllApps extends LauncherInstrumentation.VisibleContainer { if (mLauncher.getNavigationModel() != ZERO_BUTTON) { final UiObject2 navBar = mLauncher.waitForSystemUiObject("navigation_bar_frame"); allAppsContainer.setGestureMargins(0, 0, 0, navBar.getVisibleBounds().height() + 1); + } else { + allAppsContainer.setGestureMargins(0, 0, 0, 100); } final BySelector appIconSelector = AppIcon.getAppIconSelector(appName, mLauncher); if (!hasClickableIcon(allAppsContainer, appIconSelector)) {