debug: Temporarily notify backup error for auto backup

This commit is contained in:
Ahmad Ansori Palembani 2024-10-10 10:01:22 +07:00
parent 15ca197c4e
commit 1ae32840eb
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -64,7 +64,9 @@ class BackupCreatorJob(private val context: Context, workerParams: WorkerParamet
Result.success()
} catch (e: Exception) {
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()
} finally {
context.notificationManager.cancel(Notifications.ID_BACKUP_PROGRESS)