diff --git a/tests/tapl/com/android/launcher3/tapl/LaunchedAppState.java b/tests/tapl/com/android/launcher3/tapl/LaunchedAppState.java index 501c4c34d7..200f2fff17 100644 --- a/tests/tapl/com/android/launcher3/tapl/LaunchedAppState.java +++ b/tests/tapl/com/android/launcher3/tapl/LaunchedAppState.java @@ -130,8 +130,11 @@ public final class LaunchedAppState extends Background { int endX = startX; int endY = startY - taskbarFromNavThreshold; - mLauncher.linearGesture(startX, startY, endX, endY, 10, /* slowDown= */ true, - LauncherInstrumentation.GestureScope.EXPECT_PILFER); + mLauncher.executeAndWaitForLauncherStop( + () -> mLauncher.linearGesture(startX, startY, endX, endY, 10, + /* slowDown= */ true, + LauncherInstrumentation.GestureScope.EXPECT_PILFER), + "swiping"); LauncherInstrumentation.log("swipeUpToUnstashTaskbar: sent linear swipe up gesture"); return new Taskbar(mLauncher);