Merge "Wait for both window and layer to be visible and window to be pinned before considering the app in pip mode" into udc-dev

This commit is contained in:
TreeHugger Robot
2023-04-20 22:51:04 +00:00
committed by Android (Google) Code Review

View File

@@ -250,7 +250,10 @@ open class PipAppHelper(instrumentation: Instrumentation) :
waitConditions = arrayOf(ConditionsFactory.hasPipWindow())
)
wmHelper.StateSyncBuilder().withPipShown().waitForAndVerify()
wmHelper.StateSyncBuilder()
.withWindowSurfaceAppeared(this)
.withPipShown()
.waitForAndVerify()
}
/** Expand the PIP window back to full screen via intent and wait until the app is visible */