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:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user