mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 02:34:39 +00:00
chore: Testing setToForeground on auto backup (again)
This commit is contained in:
parent
231ece7bfb
commit
dceac33b7c
1 changed files with 3 additions and 0 deletions
|
@ -48,12 +48,15 @@ class BackupCreatorJob(private val context: Context, workerParams: WorkerParamet
|
|||
?: getAutomaticBackupLocation()
|
||||
?: return Result.failure()
|
||||
|
||||
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