Merge "Wait until PIP has the correct bounds before continuing" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
be10d8551a
@@ -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