File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
app/src/main/java/to/bitkit Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ enum class BackupCategory(
1616 uiIcon = R .drawable.ic_note,
1717 uiTitle = R .string.settings__backup__category_connection_receipts,
1818 ),
19- LDK_ACTIVITY (
19+ ACTIVITY (
2020 uiIcon = R .drawable.ic_transfer,
2121 uiTitle = R .string.settings__backup__category_transaction_log,
2222 ),
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ class BackupRepo @Inject constructor(
205205 .drop(1 )
206206 .collect {
207207 if (! isRestoring) {
208- markBackupRequired(BackupCategory .LDK_ACTIVITY )
208+ markBackupRequired(BackupCategory .ACTIVITY )
209209 }
210210 }
211211 }
@@ -375,7 +375,7 @@ class BackupRepo @Inject constructor(
375375 json.encodeToString(payload).toByteArray()
376376 }
377377
378- BackupCategory .LDK_ACTIVITY -> {
378+ BackupCategory .ACTIVITY -> {
379379 val activities = activityRepo.getActivities().getOrDefault(emptyList())
380380
381381 val payload = ActivityBackupV1 (
@@ -441,7 +441,7 @@ class BackupRepo @Inject constructor(
441441 context = TAG ,
442442 )
443443 }
444- performRestore(BackupCategory .LDK_ACTIVITY ) { dataBytes ->
444+ performRestore(BackupCategory .ACTIVITY ) { dataBytes ->
445445 val parsed = json.decodeFromString<ActivityBackupV1 >(String (dataBytes))
446446
447447 // Restore activities using upsertActivity (idempotent - insert or update)
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ private fun Preview() {
251251 val timestamp = System .currentTimeMillis() - (minutesAgo * 60 * 1000 )
252252
253253 when (it.category) {
254- BackupCategory .LDK_ACTIVITY -> it.copy(disableRetry = true )
254+ BackupCategory .ACTIVITY -> it.copy(disableRetry = true )
255255 BackupCategory .WALLET -> it.copy(status = BackupItemStatus (running = true , required = 1 ))
256256 BackupCategory .METADATA -> it.copy(status = BackupItemStatus (required = 1 ))
257257 else -> it.copy(status = BackupItemStatus (synced = timestamp, required = timestamp))
You can’t perform that action at this time.
0 commit comments