fix: Backup progress is never shown

This commit is contained in:
Ahmad Ansori Palembani 2024-10-06 16:07:49 +07:00
parent f6e5a6c712
commit 7fe5e9a767
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -48,6 +48,8 @@ class BackupCreatorJob(private val context: Context, workerParams: WorkerParamet
?: getAutomaticBackupLocation()
?: return Result.failure()
// FIXME: tryToSetForeground keep causing auto backup to fail
notifier.showBackupProgress() // Remove when tryToSetForeground is "fixed"
// tryToSetForeground()
val options = inputData.getBooleanArray(BACKUP_FLAGS_KEY)?.let { BackupOptions.fromBooleanArray(it) }