mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: Try to set backup creator to foreground for manual backup
This commit is contained in:
parent
54fdec2fc3
commit
c2f07fbfc0
1 changed files with 6 additions and 3 deletions
|
@ -48,9 +48,12 @@ 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()
|
||||
if (isAutoBackup) {
|
||||
notifier.showBackupProgress() // Remove when tryToSetForeground is "fixed"
|
||||
} else {
|
||||
// FIXME: tryToSetForeground keep causing auto backup to fail
|
||||
tryToSetForeground()
|
||||
}
|
||||
|
||||
val options = inputData.getBooleanArray(BACKUP_FLAGS_KEY)?.let { BackupOptions.fromBooleanArray(it) }
|
||||
?: BackupOptions()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue