mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-20 02:58:45 +00:00
Prevent backup restore service trashing for optimized restore.
This commit is contained in:
committed by
Michelle Tang
parent
6cb716516d
commit
293dcb93d6
@@ -66,6 +66,8 @@ class RestoreOptimizedMediaJob private constructor(parameters: Parameters) : Job
|
|||||||
|
|
||||||
ArchiveRestoreProgress.onStartMediaRestore()
|
ArchiveRestoreProgress.onStartMediaRestore()
|
||||||
|
|
||||||
|
BackupMediaRestoreService.start(context, context.getString(R.string.BackupStatus__restoring_media))
|
||||||
|
|
||||||
restorableAttachments
|
restorableAttachments
|
||||||
.forEach {
|
.forEach {
|
||||||
val job = RestoreAttachmentJob.forOffloadedRestore(
|
val job = RestoreAttachmentJob.forOffloadedRestore(
|
||||||
@@ -78,7 +80,6 @@ class RestoreOptimizedMediaJob private constructor(parameters: Parameters) : Job
|
|||||||
jobManager.add(job)
|
jobManager.add(job)
|
||||||
}
|
}
|
||||||
|
|
||||||
BackupMediaRestoreService.start(context, context.getString(R.string.BackupStatus__restoring_media))
|
|
||||||
ArchiveRestoreProgress.onRestoringMedia()
|
ArchiveRestoreProgress.onRestoringMedia()
|
||||||
|
|
||||||
RestoreAttachmentJob.Queues.OFFLOAD_RESTORE.forEach { queue ->
|
RestoreAttachmentJob.Queues.OFFLOAD_RESTORE.forEach { queue ->
|
||||||
|
|||||||
Reference in New Issue
Block a user