diff options
| author | 2024-07-17 18:02:17 +0000 | |
|---|---|---|
| committer | 2024-07-17 18:02:17 +0000 | |
| commit | 462983b9fd831eb2007b51de2cda00b15c14167a (patch) | |
| tree | 2c59ad4785156e7189a4a9c043c8427922286f91 | |
| parent | a2cf8a5ef777da5f4b4577cd6ffcf8c8a5a4c266 (diff) | |
Check if there are tasks before dismissing
Bug: 352630924
Flag: EXEMPT bugfix
Test: Presubmit
Change-Id: Ic7b2b8e4c95fd6614f56995e8959ceb1cd1c090f
| -rw-r--r-- | libs/WindowManager/Shell/tests/flicker/service/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/SwitchAppByDoubleTapDivider.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/WindowManager/Shell/tests/flicker/service/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/SwitchAppByDoubleTapDivider.kt b/libs/WindowManager/Shell/tests/flicker/service/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/SwitchAppByDoubleTapDivider.kt index db962e717a3b..2406bdeebdf2 100644 --- a/libs/WindowManager/Shell/tests/flicker/service/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/SwitchAppByDoubleTapDivider.kt +++ b/libs/WindowManager/Shell/tests/flicker/service/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/SwitchAppByDoubleTapDivider.kt @@ -48,7 +48,10 @@ constructor(val rotation: Rotation = Rotation.ROTATION_0) { @Before fun setup() { - tapl.workspace.switchToOverview().dismissAllTasks() + val overview = tapl.workspace.switchToOverview() + if (overview.hasTasks()) { + overview.dismissAllTasks() + } tapl.setEnableRotation(true) tapl.setExpectedRotation(rotation.value) |