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

Commit 807c9c04 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Listen for LOCKSCREEN_USE_DOUBLE_LINE_CLOCK changes on all users" into main

parents f07059c4 e1f2f98e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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() } }
+3 −1
Original line number Diff line number Diff line
@@ -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() }