Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e8bc06a authored by Nataniel Borges's avatar Nataniel Borges
Browse files

Wait until PIP has the correct bounds before continuing

Bug: 288353930
Test: atest WMShellFlickerTestPip
Change-Id: I92ec51ea2a5e7e396ff4c618e03c6530f3257d1b
parent 41b1f988
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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()
    }