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:
committed by
Android (Google) Code Review
commit
56216f2649
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user