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

Commit 5f101dcf authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Disable rotation check to enter overview

If we are on the launcher on a phone we are likely to be in portrait which will fail the switchToOverview action.

Bug: 300065764
Test: atest com.android.wm.shell.flicker.service.splitscreen.flicker.EnterSplitScreenFromOverviewGesturalNavLandscape
Change-Id: I9542409f2c28b1996ad958d8c572e53ca7ea2537
parent f8e61cf3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -151,8 +151,11 @@ object SplitScreenUtils {
            }
            snapshots[0].click()
        } else {
            val rotationCheckEnabled = tapl.getExpectedRotationCheckEnabled()
            tapl.setExpectedRotationCheckEnabled(false) // disable rotation check to enter overview
            val home = tapl.workspace
                .switchToOverview()
            tapl.setExpectedRotationCheckEnabled(rotationCheckEnabled) // restore rotation checks
            ChangeDisplayOrientationRule.setRotation(rotation)
            home.currentTask
                .tapMenu()