show error notification when AppBackupWorker isn't successful
otherwise there's no UI feedback when running backup manually
This commit is contained in:
parent
2957678465
commit
32d7f49d4c
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@ class AppBackupWorker(
|
|||
Result.retry()
|
||||
} else {
|
||||
val result = doBackup()
|
||||
// show error notification if backup wasn't successful (maybe only when no retry?)
|
||||
if (result != Result.success()) nm.onBackupError()
|
||||
// only allow retrying if rescheduling is allowed
|
||||
if (tags.contains(TAG_RESCHEDULE)) return result
|
||||
else Result.success()
|
||||
|
|
Loading…
Reference in a new issue