Skip to content

Commit 6366973

Browse files
committed
Removed Exporting successful toast on auto backup
1 parent 838f50e commit 6366973

File tree

1 file changed

+2
-3
lines changed
  • app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions

1 file changed

+2
-3
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/Context.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,8 @@ fun Context.backupNotes() {
152152
showErrorToast(e)
153153
}
154154

155-
when (exportResult) {
156-
ExportResult.EXPORT_OK -> toast(R.string.exporting_successful)
157-
else -> toast(R.string.exporting_failed)
155+
if (exportResult == ExportResult.EXPORT_FAIL) {
156+
toast(R.string.exporting_failed)
158157
}
159158

160159
config.lastAutoBackupTime = DateTime.now().millis

0 commit comments

Comments
 (0)