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

Commit 56216f26 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Wait for both window and layer to be visible and window to be pinned...

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
parents 978d51f0 2c6492d6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 */