Replace preference getter functions with properties (#3091)
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ abstract class BaseUpdatesGridGlanceWidget(
|
||||
abstract val bottomPadding: Dp
|
||||
|
||||
override suspend fun provideGlance(context: Context, id: GlanceId) {
|
||||
val locked = preferences.useAuthenticator().get()
|
||||
val locked = preferences.useAuthenticator.get()
|
||||
val containerModifier = GlanceModifier
|
||||
.fillMaxSize()
|
||||
.background(background)
|
||||
|
||||
@@ -22,7 +22,7 @@ class WidgetManager(
|
||||
fun Context.init(scope: LifecycleCoroutineScope) {
|
||||
combine(
|
||||
getUpdates.subscribe(read = false, after = BaseUpdatesGridGlanceWidget.DateLimit.toEpochMilli()),
|
||||
securityPreferences.useAuthenticator().changes(),
|
||||
securityPreferences.useAuthenticator.changes(),
|
||||
transform = { a, b -> a to b },
|
||||
)
|
||||
.distinctUntilChanged { old, new ->
|
||||
|
||||
Reference in New Issue
Block a user