Skip to content

Commit 0f79bc1

Browse files
committed
display Success message at synced notes if set so
1 parent e2296ec commit 0f79bc1

File tree

1 file changed

+2
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments

1 file changed

+2
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/NoteFragment.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ class NoteFragment : androidx.fragment.app.Fragment() {
195195
} else {
196196
val currentText = getCurrentNoteViewText()
197197
if (currentText != null) {
198-
(activity as? MainActivity)?.exportNoteValueToFile(note.path, currentText, false)
198+
val displaySuccess = activity?.config?.displaySuccess ?: false
199+
(activity as? MainActivity)?.exportNoteValueToFile(note.path, currentText, displaySuccess)
199200
}
200201
}
201202
}

0 commit comments

Comments
 (0)