Merge "Fixing broken tests on 2 and 3 button devices." into ub-launcher3-rvc-dev am: d6e3775726

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11891563

Change-Id: Ie9f00e8e24bd6423cf38f79b03cf7133836e2f8a
diff --git a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java
index ffe55b6..bd8ab08 100644
--- a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java
+++ b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java
@@ -121,7 +121,8 @@
                     UiDevice.getInstance(getInstrumentation()).executeShellCommand(
                             getLauncherCommand(getLauncherInMyProcess()));
                     // b/143488140
-                    mLauncher.pressHome();
+                    mDevice.pressHome();
+                    mDevice.waitForIdle();
                 }
             }
         };