Merge "Wait until PIP has the correct bounds before continuing" into udc-qpr-dev

This commit is contained in:
Treehugger Robot
2023-07-05 17:15:51 +00:00
committed by Android (Google) Code Review

View File

@@ -250,10 +250,13 @@ open class PipAppHelper(instrumentation: Instrumentation) :
waitConditions = arrayOf(ConditionsFactory.hasPipWindow())
)
val windowRegion = wmHelper.getWindowRegion(this)
wmHelper
.StateSyncBuilder()
.withWindowSurfaceAppeared(this)
.withPipShown()
.withSurfaceVisibleRegion(this, windowRegion)
.waitForAndVerify()
}