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

Commit b38bf2d7 authored by Brad Hinegardner's avatar Brad Hinegardner Committed by Android (Google) Code Review
Browse files

Merge "Hide or show smartspace on proper thread when swiping between clocks" into udc-dev

parents 9dff0a45 2fa1932e
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