Prevent backup restore service trashing for optimized restore.

This commit is contained in:
Cody Henthorne
2025-12-08 11:18:04 -05:00
committed by Michelle Tang
parent 6cb716516d
commit 293dcb93d6

View File

@@ -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 ->