mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +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()
|
?: getAutomaticBackupLocation()
|
||||||
?: return Result.failure()
|
?: return Result.failure()
|
||||||
|
|
||||||
|
tryToSetForeground()
|
||||||
|
/*
|
||||||
if (isAutoBackup) {
|
if (isAutoBackup) {
|
||||||
notifier.showBackupProgress() // Remove when tryToSetForeground is "fixed"
|
notifier.showBackupProgress() // Remove when tryToSetForeground is "fixed"
|
||||||
} else {
|
} else {
|
||||||
// FIXME: tryToSetForeground keep causing auto backup to fail
|
// FIXME: tryToSetForeground keep causing auto backup to fail
|
||||||
tryToSetForeground()
|
tryToSetForeground()
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
val options = inputData.getBooleanArray(BACKUP_FLAGS_KEY)?.let { BackupOptions.fromBooleanArray(it) }
|
val options = inputData.getBooleanArray(BACKUP_FLAGS_KEY)?.let { BackupOptions.fromBooleanArray(it) }
|
||||||
?: BackupOptions()
|
?: BackupOptions()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue