From 9b6e35749eb6bd5a1888dadc1f67a2f4d7c1acd6 Mon Sep 17 00:00:00 2001 From: Nataniel Borges Date: Tue, 29 Mar 2022 13:37:03 +0000 Subject: [PATCH] Wait for correct surface to disappear on transition Waiting for the wrong surface makes the transition crash Fixes: 227308870 Test: atest ExitPipViaExpandButtonClickTest Change-Id: I3be2da3c344301586cc61201b962ffce3937e77d --- .../wm/shell/flicker/pip/ExitPipViaExpandButtonClickTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ExitPipViaExpandButtonClickTest.kt b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ExitPipViaExpandButtonClickTest.kt index e2d08346efb66..a3ed79bf04098 100644 --- a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ExitPipViaExpandButtonClickTest.kt +++ b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ExitPipViaExpandButtonClickTest.kt @@ -74,7 +74,7 @@ class ExitPipViaExpandButtonClickTest( // This will bring PipApp to fullscreen pipApp.expandPipWindowToApp(wmHelper) // Wait until the other app is no longer visible - wmHelper.waitForSurfaceAppeared(testApp.component) + wmHelper.waitForWindowSurfaceDisappeared(testApp.component) } }