mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
TAPL: Not starting all apps scroll gestures over nav bar
This is important for zero-button navigation. Change-Id: Ib281762dbb995e6c89ae55b808343ddb9f4963ae
This commit is contained in:
@@ -63,6 +63,8 @@ public class AllApps extends LauncherInstrumentation.VisibleContainer {
|
||||
try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer(
|
||||
"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());
|
||||
final BySelector appIconSelector = AppIcon.getAppIconSelector(appName, mLauncher);
|
||||
if (!hasClickableIcon(allAppsContainer, appIconSelector)) {
|
||||
scrollBackToBeginning();
|
||||
|
||||
Reference in New Issue
Block a user