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

Commit 462983b9 authored by Winson Chung's avatar Winson Chung
Browse files

Check if there are tasks before dismissing

Bug: 352630924
Flag: EXEMPT bugfix
Test: Presubmit
Change-Id: Ic7b2b8e4c95fd6614f56995e8959ceb1cd1c090f
parent a2cf8a5e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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)