File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/to/bitkit/repositories Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ class BackupRepo @Inject constructor(
301301 type = Toast .ToastType .ERROR ,
302302 title = context.getString(R .string.settings__backup__failed_title),
303303 description = context.getString(R .string.settings__backup__failed_message).formatPlural(
304- mapOf (" interval" to (BACKUP_CHECK_INTERVAL / MINUTE_IN_MS )) // displayed in minutes
304+ mapOf (" interval" to (BACKUP_CHECK_INTERVAL / MINUTE_IN_MS ))
305305 ),
306306 )
307307 }
@@ -406,9 +406,9 @@ class BackupRepo @Inject constructor(
406406 return @withContext try {
407407 performRestore(BackupCategory .METADATA ) { dataBytes ->
408408 val parsed = json.decodeFromString<MetadataBackupV1 >(String (dataBytes))
409- db.tagMetadataDao().upsert(parsed.tagMetadata)
410409 cacheStore.update { parsed.cache }
411410 onCacheRestored()
411+ db.tagMetadataDao().upsert(parsed.tagMetadata)
412412 Logger .debug(" Restored caches and ${parsed.tagMetadata.size} tags metadata records" , TAG )
413413 }
414414
You can’t perform that action at this time.
0 commit comments