diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt index e2ce5e6f..661a3a9f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt @@ -216,12 +216,17 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener { out.write(content) } } - toast(R.string.file_saved) + noteSavedSuccessfully() } catch (e: Exception) { toast(R.string.unknown_error_occurred) } } + fun noteSavedSuccessfully() { + val message = String.format(getString(R.string.note_saved_successfully), mCurrentNote.title) + toast(message) + } + private fun getCurrentNoteText() = (view_pager.adapter as NotesPagerAdapter).getCurrentNoteText(view_pager.currentItem) private fun displayDeleteNotePrompt() { diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/fragments/NoteFragment.kt b/app/src/main/kotlin/com/simplemobiletools/notes/fragments/NoteFragment.kt index 9e6bd719..4f8df8a3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/fragments/NoteFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/fragments/NoteFragment.kt @@ -77,6 +77,7 @@ class NoteFragment : Fragment() { private fun saveNoteValue(note: Note) { if (note.path.isEmpty()) { mDb.updateNoteValue(note) + (activity as MainActivity).noteSavedSuccessfully() } else { (activity as MainActivity).saveNoteValueToFile(note.path, getCurrentNoteViewText()) } diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 58a604e5..356b8078 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -14,6 +14,8 @@ Notiz auswählen Notiz umbenennen Hauptnotiz + + Open file Save as file File too large, the limit is 10MB @@ -21,6 +23,8 @@ Update the file itself at updating the note This will delete the note only. Delete the file itself too + Note saved successfully + Display success message after saving a note Widget Notiz diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index ba21392b..d3fd4d3f 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -14,6 +14,8 @@ Seleccione una nota Renombrar nota Nota principal + + Open file Save as file File too large, the limit is 10MB @@ -21,6 +23,8 @@ Update the file itself at updating the note This will delete the note only. Delete the file itself too + Note \"%1$s\" saved successfully + Display success message after saving a note Tamaño de fuente diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index a070adeb..a3ff6e0a 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -14,6 +14,8 @@ Choisir une note Renomme la note Note générale + + Open file Save as file File too large, the limit is 10MB @@ -21,6 +23,8 @@ Update the file itself at updating the note This will delete the note only. Delete the file itself too + Note \"%1$s\" saved successfully + Display success message after saving a note Note utilisée dans le widget diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index 1b0203e3..5e76b145 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -14,6 +14,8 @@ Válassz egy jegyzetet Jegyzet átnevezése Alapértelmezett jegyzet + + Open file Save as file File too large, the limit is 10MB @@ -21,6 +23,8 @@ Update the file itself at updating the note This will delete the note only. Delete the file itself too + Note \"%1$s\" saved successfully + Display success message after saving a note A widget-ben használt jegyzet diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 67983d4c..bd912ef8 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -14,6 +14,8 @@ Pick a note Rename note General note + + Open file Save as file File too large, the limit is 10MB @@ -21,6 +23,8 @@ Update the file itself at updating the note This will delete the note only. Delete the file itself too + Note \"%1$s\" saved successfully + Display success message after saving a note Note font size diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 74a0c00e..fb6fdf37 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -14,6 +14,8 @@ メモを選択 メモの名前を変更 全般メモ + + Open file Save as file File too large, the limit is 10MB @@ -21,6 +23,8 @@ Update the file itself at updating the note This will delete the note only. Delete the file itself too + Note \"%1$s\" saved successfully + Display success message after saving a note メモのフォントサイズ diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index 8f4b4f72..2408fb75 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -15,12 +15,16 @@ Renomear nota Nota genérica Open file + + Save as file File too large, the limit is 10MB Only import the file content Update the file itself at updating the note This will delete the note only. Delete the file itself too + Note \"%1$s\" saved successfully + Display success message after saving a note Tamanho do texto da nota diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 69362988..c67d08fa 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -15,12 +15,16 @@ Rename note General note Open file + + Save as file File too large, the limit is 10MB Only import the file content Update the file itself at updating the note This will delete the note only. Delete the file itself too + Note \"%1$s\" saved successfully + Display success message after saving a note Note font size diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 103dd67e..ae4b6869 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -14,6 +14,8 @@ Pick a note Rename note General note + + Open file Save as file File too large, the limit is 10MB @@ -21,6 +23,8 @@ Update the file itself at updating the note This will delete the note only. Delete the file itself too + Note \"%1$s\" saved successfully + Display success message after saving a note Note used in widget