mirror of
https://github.com/mihonapp/mihon.git
synced 2026-10-16 13:48:09 -07:00
Store every date in the database as an Instant
This commit is contained in:
+1
-1
@@ -96,7 +96,7 @@ abstract class BaseUpdatesGridGlanceWidget : GlanceAppWidget() {
|
||||
|
||||
val flow = remember {
|
||||
getUpdates
|
||||
.subscribe(false, DateLimit.toEpochMilliseconds())
|
||||
.subscribe(false, DateLimit)
|
||||
.map { rawData ->
|
||||
rawData.prepareData(context, rowCount, columnCount)
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ class WidgetManager(
|
||||
context(context: Context)
|
||||
fun init(scope: LifecycleCoroutineScope) {
|
||||
combine(
|
||||
getUpdates.subscribe(read = false, after = BaseUpdatesGridGlanceWidget.DateLimit.toEpochMilliseconds()),
|
||||
getUpdates.subscribe(read = false, after = BaseUpdatesGridGlanceWidget.DateLimit),
|
||||
securityPreferences.useAuthenticator.changes(),
|
||||
transform = { a, b -> a to b },
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user