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

Commit 2fa1932e authored by Brad Hinegardner's avatar Brad Hinegardner
Browse files

Hide or show smartspace on proper thread when swiping between clocks

Bug: b/279394836
Test: manual - swipe between clocks, observe no crash when smartspace hides and shows
Change-Id: I5d131ae3e34a4ed7ef52ac02eaccfc73672a198f
parent 750d5d68
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -155,9 +155,16 @@ constructor(
        disposables.forEach { it.dispose() }
    }

    /**
     * Hides or shows smartspace
     *
     * @param hide TRUE hides smartspace, FALSE shows smartspace
     */
    fun hideSmartspace(hide: Boolean) {
        runBlocking(mainDispatcher) {
            smartSpaceView?.visibility = if (hide) View.INVISIBLE else View.VISIBLE
        }
    }

    /**
     * This sets up and shows a non-interactive smart space