mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
debug: Temporarily notify backup error for auto backup
This commit is contained in:
parent
15ca197c4e
commit
1ae32840eb
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,9 @@ class BackupCreatorJob(private val context: Context, workerParams: WorkerParamet
|
||||||
Result.success()
|
Result.success()
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Logger.e(e) { "Unable to create backup" }
|
Logger.e(e) { "Unable to create backup" }
|
||||||
if (!isAutoBackup) notifier.showBackupError(e.message)
|
// FIXME: Disable it for auto backup once we're done
|
||||||
|
//if (!isAutoBackup)
|
||||||
|
notifier.showBackupError(e.message)
|
||||||
Result.failure()
|
Result.failure()
|
||||||
} finally {
|
} finally {
|
||||||
context.notificationManager.cancel(Notifications.ID_BACKUP_PROGRESS)
|
context.notificationManager.cancel(Notifications.ID_BACKUP_PROGRESS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue