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
This commit is contained in:
Pablo Gamito
2023-07-25 17:13:51 +00:00
parent af74e5c691
commit 6d1611a82e

View File

@@ -33,7 +33,9 @@ abstract class SplitScreenBase(flicker: LegacyFlickerTest) : BaseBenchmarkTest(f
tapl.setEnableRotation(true)
setRotation(flicker.scenario.startRotation)
tapl.setExpectedRotation(flicker.scenario.startRotation.value)
tapl.workspace.switchToOverview().dismissAllTasks()
if (tapl.workspace.switchToOverview().hasTasks()) {
tapl.workspace.switchToOverview().dismissAllTasks()
}
}
}