diff --git a/app/src/main/java/com/stevesoltys/backup/settings/SettingsViewModel.kt b/app/src/main/java/com/stevesoltys/backup/settings/SettingsViewModel.kt
index 033a8dd3..3959aa9f 100644
--- a/app/src/main/java/com/stevesoltys/backup/settings/SettingsViewModel.kt
+++ b/app/src/main/java/com/stevesoltys/backup/settings/SettingsViewModel.kt
@@ -1,6 +1,8 @@
package com.stevesoltys.backup.settings
import android.app.Application
+import com.stevesoltys.backup.Backup
+import com.stevesoltys.backup.R
import com.stevesoltys.backup.transport.requestBackup
import com.stevesoltys.backup.ui.RequireProvisioningViewModel
@@ -10,6 +12,10 @@ class SettingsViewModel(app: Application) : RequireProvisioningViewModel(app) {
override val isRestoreOperation = false
- fun backupNow() = Thread { requestBackup(app) }.start()
+ fun backupNow() {
+ val nm = (app as Backup).notificationManager
+ nm.onBackupUpdate(app.getString(R.string.notification_backup_starting), 0, 1, true)
+ Thread { requestBackup(app) }.start()
+ }
}
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 4cd909e0..abeeedfe 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -73,6 +73,7 @@
Backup Notification
Backup running
+ Starting Backup…
Backup complete
Not backed up
Backup failed