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()
BackupMediaRestoreService.start(context, context.getString(R.string.BackupStatus__restoring_media))
restorableAttachments
.forEach {
val job = RestoreAttachmentJob.forOffloadedRestore(
@@ -78,7 +80,6 @@ class RestoreOptimizedMediaJob private constructor(parameters: Parameters) : Job
jobManager.add(job)
}
BackupMediaRestoreService.start(context, context.getString(R.string.BackupStatus__restoring_media))
ArchiveRestoreProgress.onRestoringMedia()
RestoreAttachmentJob.Queues.OFFLOAD_RESTORE.forEach { queue ->