diff options
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/KeyguardClockRepository.kt b/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/KeyguardClockRepository.kt index 708775221a00..ec52055020f2 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/KeyguardClockRepository.kt +++ b/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/KeyguardClockRepository.kt @@ -101,7 +101,7 @@ constructor( secureSettings .observerFlow( names = arrayOf(Settings.Secure.LOCKSCREEN_USE_DOUBLE_LINE_CLOCK), - userId = UserHandle.USER_SYSTEM, + userId = UserHandle.USER_ALL, ) .onStart { emit(Unit) } // Forces an initial update. .map { withContext(backgroundDispatcher) { getClockSize() } } diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/KeyguardSmartspaceRepository.kt b/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/KeyguardSmartspaceRepository.kt index a1e4af5d5d20..b67fd4bf0ea7 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/KeyguardSmartspaceRepository.kt +++ b/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/KeyguardSmartspaceRepository.kt @@ -17,6 +17,7 @@ package com.android.systemui.keyguard.data.repository import android.content.Context +import android.os.UserHandle import android.provider.Settings import android.view.View import com.android.systemui.dagger.SysUISingleton @@ -37,6 +38,7 @@ import kotlinx.coroutines.flow.stateIn interface KeyguardSmartspaceRepository { val bcSmartspaceVisibility: StateFlow<Int> val isWeatherEnabled: StateFlow<Boolean> + fun setBcSmartspaceVisibility(visibility: Int) } @@ -55,7 +57,7 @@ constructor( secureSettings .observerFlow( names = arrayOf(Settings.Secure.LOCK_SCREEN_WEATHER_ENABLED), - userId = userTracker.userId, + userId = UserHandle.USER_ALL, ) .onStart { emit(Unit) } .map { getLockscreenWeatherEnabled() } |