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

Commit 6d1611a8 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Only dismiss tasks in SplitScreenBase setup if there are task to dismiss

Bug: 293136758

Test: atest com.android.wm.shell.flicker.splitscreen
Change-Id: I755ea2ef3cf2c4ba3895608dc9e6dbe423ba733f
parent af74e5c6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -33,9 +33,11 @@ abstract class SplitScreenBase(flicker: LegacyFlickerTest) : BaseBenchmarkTest(f
            tapl.setEnableRotation(true)
            setRotation(flicker.scenario.startRotation)
            tapl.setExpectedRotation(flicker.scenario.startRotation.value)
            if (tapl.workspace.switchToOverview().hasTasks()) {
                tapl.workspace.switchToOverview().dismissAllTasks()
            }
        }
    }

    protected open val defaultTeardown: FlickerBuilder.() -> Unit = {
        teardown {