Merge "Waiting for AllApps state when opening all apps with keyboard" into main

This commit is contained in:
Vadim Tryshev
2024-01-05 18:59:45 +00:00
committed by Android (Google) Code Review

View File

@@ -121,7 +121,10 @@ public final class Workspace extends Home {
LauncherInstrumentation.Closable c =
mLauncher.addContextLayer("want to open all apps search")) {
verifyActiveContainer();
mLauncher.getDevice().pressKeyCode(KEYCODE_META_RIGHT);
mLauncher.runToState(
() -> mLauncher.getDevice().pressKeyCode(KEYCODE_META_RIGHT),
ALL_APPS_STATE_ORDINAL,
"pressing keyboard shortcut");
try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer(
"pressed meta key")) {
return new HomeAllApps(mLauncher);