Loading packages/SystemUI/src/com/android/systemui/keyguard/data/repository/KeyguardClockRepository.kt +1 −1 Original line number Diff line number Diff line Loading @@ -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() } } Loading packages/SystemUI/src/com/android/systemui/keyguard/data/repository/KeyguardSmartspaceRepository.kt +3 −1 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -37,6 +38,7 @@ import kotlinx.coroutines.flow.stateIn interface KeyguardSmartspaceRepository { val bcSmartspaceVisibility: StateFlow<Int> val isWeatherEnabled: StateFlow<Boolean> fun setBcSmartspaceVisibility(visibility: Int) } Loading @@ -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() } Loading Loading
packages/SystemUI/src/com/android/systemui/keyguard/data/repository/KeyguardClockRepository.kt +1 −1 Original line number Diff line number Diff line Loading @@ -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() } } Loading
packages/SystemUI/src/com/android/systemui/keyguard/data/repository/KeyguardSmartspaceRepository.kt +3 −1 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -37,6 +38,7 @@ import kotlinx.coroutines.flow.stateIn interface KeyguardSmartspaceRepository { val bcSmartspaceVisibility: StateFlow<Int> val isWeatherEnabled: StateFlow<Boolean> fun setBcSmartspaceVisibility(visibility: Int) } Loading @@ -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() } Loading