mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
adding a confirmation message after file exporting
This commit is contained in:
@ -42,7 +42,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
|
||||
lateinit var mDb: DBHelper
|
||||
lateinit var mNotes: List<Note>
|
||||
|
||||
var noteViewWithTextSelected: MyEditText? = null
|
||||
private var noteViewWithTextSelected: MyEditText? = null
|
||||
private var wasInit = false
|
||||
private var storedUseEnglish = false
|
||||
|
||||
@ -331,7 +331,8 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
|
||||
out.write(content)
|
||||
}
|
||||
}
|
||||
noteSavedSuccessfully(path.getFilenameFromPath())
|
||||
val message = String.format(getString(R.string.note_exported_successfully), path.getFilenameFromPath())
|
||||
toast(message)
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
}
|
||||
|
Reference in New Issue
Block a user