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

Commit 1b4230bd authored by Brad Hinegardner's avatar Brad Hinegardner Committed by Automerger Merge Worker
Browse files

Merge "Hide or show smartspace on proper thread when swiping between clocks"...

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22821476



Change-Id: I882ba07846de1dd2b7dccfbf16953ecb598e774d
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7a4c4442 b38bf2d7
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