summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyguard/ui/preview/KeyguardPreviewRenderer.kt9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/ui/preview/KeyguardPreviewRenderer.kt b/packages/SystemUI/src/com/android/systemui/keyguard/ui/preview/KeyguardPreviewRenderer.kt
index 85fb5655899f..a98a7d8f8639 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/ui/preview/KeyguardPreviewRenderer.kt
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/ui/preview/KeyguardPreviewRenderer.kt
@@ -155,8 +155,15 @@ constructor(
disposables.forEach { it.dispose() }
}
+ /**
+ * Hides or shows smartspace
+ *
+ * @param hide TRUE hides smartspace, FALSE shows smartspace
+ */
fun hideSmartspace(hide: Boolean) {
- smartSpaceView?.visibility = if (hide) View.INVISIBLE else View.VISIBLE
+ runBlocking(mainDispatcher) {
+ smartSpaceView?.visibility = if (hide) View.INVISIBLE else View.VISIBLE
+ }
}
/**