adding a confirmation message after file exporting

This commit is contained in:
tibbi 2017-11-10 21:08:18 +01:00
parent 17c733f662
commit 239d0e966d
15 changed files with 17 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
lateinit var mDb: DBHelper lateinit var mDb: DBHelper
lateinit var mNotes: List<Note> lateinit var mNotes: List<Note>
var noteViewWithTextSelected: MyEditText? = null private var noteViewWithTextSelected: MyEditText? = null
private var wasInit = false private var wasInit = false
private var storedUseEnglish = false private var storedUseEnglish = false
@ -331,7 +331,8 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
out.write(content) out.write(content)
} }
} }
noteSavedSuccessfully(path.getFilenameFromPath()) val message = String.format(getString(R.string.note_exported_successfully), path.getFilenameFromPath())
toast(message)
} catch (e: Exception) { } catch (e: Exception) {
showErrorToast(e) showErrorToast(e)
} }

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">Übernehme Änderungen an der Notiz in die Datei\n(Notiz wird gelöscht, wenn die Datei gelöscht wird oder sich der Pfad ändert.)</string> <string name="update_file_at_note">Übernehme Änderungen an der Notiz in die Datei\n(Notiz wird gelöscht, wenn die Datei gelöscht wird oder sich der Pfad ändert.)</string>
<string name="delete_file_itself">Lösche Datei \"%s\"</string> <string name="delete_file_itself">Lösche Datei \"%s\"</string>
<string name="note_saved_successfully">Notiz \"%s\" erfolgreich gespeichert</string> <string name="note_saved_successfully">Notiz \"%s\" erfolgreich gespeichert</string>
<string name="note_exported_successfully">Note \"%s\" exported successfully</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Zeige Benachrichtigung bei erfolgreichem Speichern</string> <string name="display_success_message">Zeige Benachrichtigung bei erfolgreichem Speichern</string>

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">Update the file itself at updating the note\n(note gets deleted if file gets deleted, or path changes)</string> <string name="update_file_at_note">Update the file itself at updating the note\n(note gets deleted if file gets deleted, or path changes)</string>
<string name="delete_file_itself">Also delete file \"%s\"</string> <string name="delete_file_itself">Also delete file \"%s\"</string>
<string name="note_saved_successfully">Note \"%s\" saved successfully</string> <string name="note_saved_successfully">Note \"%s\" saved successfully</string>
<string name="note_exported_successfully">Note \"%s\" exported successfully</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Display save success messages</string> <string name="display_success_message">Display save success messages</string>

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">Metttre à jour le fichier lui-même lors de la mise à jour de la note\n(la note est supprimée si le fichier est supprimé, ou que le chemin change)</string> <string name="update_file_at_note">Metttre à jour le fichier lui-même lors de la mise à jour de la note\n(la note est supprimée si le fichier est supprimé, ou que le chemin change)</string>
<string name="delete_file_itself">Supprimer également le fichier \"%s\"</string> <string name="delete_file_itself">Supprimer également le fichier \"%s\"</string>
<string name="note_saved_successfully">Note \"%s\" sauvegardée avec succès</string> <string name="note_saved_successfully">Note \"%s\" sauvegardée avec succès</string>
<string name="note_exported_successfully">Note \"%s\" exported successfully</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Afficher les messages de succès de sauvegarde</string> <string name="display_success_message">Afficher les messages de succès de sauvegarde</string>

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">A jegyzetbe íráskor a fájlba is írás\n(a jegyzet törlődik ha a fájl törlődik, vagy változik az elérési útvonala)</string> <string name="update_file_at_note">A jegyzetbe íráskor a fájlba is írás\n(a jegyzet törlődik ha a fájl törlődik, vagy változik az elérési útvonala)</string>
<string name="delete_file_itself">\"%s\" fájl is törlődjön</string> <string name="delete_file_itself">\"%s\" fájl is törlődjön</string>
<string name="note_saved_successfully">\"%s\" nevű jegyzet elmentve</string> <string name="note_saved_successfully">\"%s\" nevű jegyzet elmentve</string>
<string name="note_exported_successfully">Note \"%s\" exported successfully</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Sikeres mentés üzenetek megjelenítése</string> <string name="display_success_message">Sikeres mentés üzenetek megjelenítése</string>

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">Update the file itself at updating the note\n(note gets deleted if file gets deleted, or path changes)</string> <string name="update_file_at_note">Update the file itself at updating the note\n(note gets deleted if file gets deleted, or path changes)</string>
<string name="delete_file_itself">Also delete file \"%s\"</string> <string name="delete_file_itself">Also delete file \"%s\"</string>
<string name="note_saved_successfully">Note \"%s\" saved successfully</string> <string name="note_saved_successfully">Note \"%s\" saved successfully</string>
<string name="note_exported_successfully">Note \"%s\" exported successfully</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Display save success messages</string> <string name="display_success_message">Display save success messages</string>

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">Update the file itself at updating the note\n(note gets deleted if file gets deleted, or path changes)</string> <string name="update_file_at_note">Update the file itself at updating the note\n(note gets deleted if file gets deleted, or path changes)</string>
<string name="delete_file_itself">Also delete file \"%s\"</string> <string name="delete_file_itself">Also delete file \"%s\"</string>
<string name="note_saved_successfully">Note \"%s\" saved successfully</string> <string name="note_saved_successfully">Note \"%s\" saved successfully</string>
<string name="note_exported_successfully">Note \"%s\" exported successfully</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Display save success messages</string> <string name="display_success_message">Display save success messages</string>

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">Atnaujinti failà kai atnaujinamas áraðas\n(Áraðas iðtrinamas, jei iðtrinamas failas ar pakeièiama talpinimo vieta)</string> <string name="update_file_at_note">Atnaujinti failà kai atnaujinamas áraðas\n(Áraðas iðtrinamas, jei iðtrinamas failas ar pakeièiama talpinimo vieta)</string>
<string name="delete_file_itself">Taip pat iðtrinti failà \"%s\"</string> <string name="delete_file_itself">Taip pat iðtrinti failà \"%s\"</string>
<string name="note_saved_successfully">Áraðas \"%s\" sëkmingai iðsaugotas</string> <string name="note_saved_successfully">Áraðas \"%s\" sëkmingai iðsaugotas</string>
<string name="note_exported_successfully">Note \"%s\" exported successfully</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Rodyti sëkmingo iðsaugojimo praneðimus</string> <string name="display_success_message">Rodyti sëkmingo iðsaugojimo praneðimus</string>

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">Zaktualizuj plik po zaktualizowaniu notatki\n(notatka zostanie usunięta jeśli plik zostanie usunięty lub zmieni się jego lokalizacja)</string> <string name="update_file_at_note">Zaktualizuj plik po zaktualizowaniu notatki\n(notatka zostanie usunięta jeśli plik zostanie usunięty lub zmieni się jego lokalizacja)</string>
<string name="delete_file_itself">Usuń także plik \"%s\"</string> <string name="delete_file_itself">Usuń także plik \"%s\"</string>
<string name="note_saved_successfully">Notatka \"%s\" została zapisana</string> <string name="note_saved_successfully">Notatka \"%s\" została zapisana</string>
<string name="note_exported_successfully">Note \"%s\" exported successfully</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Wyświetlaj informacje o pomyślnym zapisaniu notatki</string> <string name="display_success_message">Wyświetlaj informacje o pomyślnym zapisaniu notatki</string>

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">Update the file itself at updating the note\n(note gets deleted if file gets deleted, or path changes)</string> <string name="update_file_at_note">Update the file itself at updating the note\n(note gets deleted if file gets deleted, or path changes)</string>
<string name="delete_file_itself">Apagar também o arquivo \"%s\"</string> <string name="delete_file_itself">Apagar também o arquivo \"%s\"</string>
<string name="note_saved_successfully">Nota \"%s\" guardada com sucesso</string> <string name="note_saved_successfully">Nota \"%s\" guardada com sucesso</string>
<string name="note_exported_successfully">Note \"%s\" exported successfully</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Mostrar mensagens de gravação com sucesso</string> <string name="display_success_message">Mostrar mensagens de gravação com sucesso</string>

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">Atualizar o ficheiro ao atualizar a nota\n(a nota será removida se apagar o ficheiro ou se mudar a sua localização)</string> <string name="update_file_at_note">Atualizar o ficheiro ao atualizar a nota\n(a nota será removida se apagar o ficheiro ou se mudar a sua localização)</string>
<string name="delete_file_itself">Apagar também o ficheiro \"%s\"</string> <string name="delete_file_itself">Apagar também o ficheiro \"%s\"</string>
<string name="note_saved_successfully">Nota \"%s\" guardada com sucesso</string> <string name="note_saved_successfully">Nota \"%s\" guardada com sucesso</string>
<string name="note_exported_successfully">Note \"%s\" exported successfully</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Mostrar mensagens de gravação com sucesso</string> <string name="display_success_message">Mostrar mensagens de gravação com sucesso</string>

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">Обновлять содержимое файла при обновлении заметки\n(заметка удалится, если удалить файл или изменить путь к нему)</string> <string name="update_file_at_note">Обновлять содержимое файла при обновлении заметки\n(заметка удалится, если удалить файл или изменить путь к нему)</string>
<string name="delete_file_itself">Также удалить файл \"%s\"</string> <string name="delete_file_itself">Также удалить файл \"%s\"</string>
<string name="note_saved_successfully">Заметка \"%s\" сохранена успешно</string> <string name="note_saved_successfully">Заметка \"%s\" сохранена успешно</string>
<string name="note_exported_successfully">Note \"%s\" exported successfully</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Уведомлять, что файл успешно сохранен</string> <string name="display_success_message">Уведомлять, что файл успешно сохранен</string>

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">Aktualizovať samotný súbor po úprave poznámky\n(ak bude daný súbor presunutý, alebo vymazaný, bude vymazaná aj poznámka)</string> <string name="update_file_at_note">Aktualizovať samotný súbor po úprave poznámky\n(ak bude daný súbor presunutý, alebo vymazaný, bude vymazaná aj poznámka)</string>
<string name="delete_file_itself">Odstrániť aj súbor \"%s\"</string> <string name="delete_file_itself">Odstrániť aj súbor \"%s\"</string>
<string name="note_saved_successfully">Poznámka \"%s\" bola úspešne uložená</string> <string name="note_saved_successfully">Poznámka \"%s\" bola úspešne uložená</string>
<string name="note_exported_successfully">Poznámka \"%s\" bola úspešne exportovaná</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Zobraziť správu o úspešnom uložení poznámky</string> <string name="display_success_message">Zobraziť správu o úspešnom uložení poznámky</string>

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">Uppdatera själva filen när anteckningen uppdateras\n(anteckningen tas bort om filen tas bort eller sökvägen ändras)</string> <string name="update_file_at_note">Uppdatera själva filen när anteckningen uppdateras\n(anteckningen tas bort om filen tas bort eller sökvägen ändras)</string>
<string name="delete_file_itself">Ta även bort filen \"%s\"</string> <string name="delete_file_itself">Ta även bort filen \"%s\"</string>
<string name="note_saved_successfully">Anteckningen \"%s\" har sparats</string> <string name="note_saved_successfully">Anteckningen \"%s\" har sparats</string>
<string name="note_exported_successfully">Note \"%s\" exported successfully</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Visa ett meddelande när en anteckning har sparats</string> <string name="display_success_message">Visa ett meddelande när en anteckning har sparats</string>

View File

@ -24,6 +24,7 @@
<string name="update_file_at_note">Update the file itself at updating the note\n(note gets deleted if file gets deleted, or path changes)</string> <string name="update_file_at_note">Update the file itself at updating the note\n(note gets deleted if file gets deleted, or path changes)</string>
<string name="delete_file_itself">Also delete file \"%s\"</string> <string name="delete_file_itself">Also delete file \"%s\"</string>
<string name="note_saved_successfully">Note \"%s\" saved successfully</string> <string name="note_saved_successfully">Note \"%s\" saved successfully</string>
<string name="note_exported_successfully">Note \"%s\" exported successfully</string>
<!-- Settings --> <!-- Settings -->
<string name="display_success_message">Display save success messages</string> <string name="display_success_message">Display save success messages</string>