Wait until PIP has the correct bounds before continuing
Bug: 288353930 Test: atest WMShellFlickerTestPip Change-Id: I92ec51ea2a5e7e396ff4c618e03c6530f3257d1b
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user