fix some glitches related to exporting current notes

This commit is contained in:
tibbi
2019-03-08 23:27:58 +01:00
parent 53340c9972
commit 7b1e0a5ea0
3 changed files with 17 additions and 0 deletions

View File

@ -488,6 +488,7 @@ class MainActivity : SimpleActivity() {
mCurrentNote.value = textToExport
}
getPagerAdapter().updateCurrentNoteData(view_pager.currentItem, mCurrentNote.path, mCurrentNote.value)
NotesHelper(this).insertOrUpdateNote(mCurrentNote)
}
}
@ -532,6 +533,7 @@ class MainActivity : SimpleActivity() {
if (mCurrentNote.id == note.id) {
mCurrentNote.value = note.value
mCurrentNote.path = note.path
getPagerAdapter().updateCurrentNoteData(view_pager.currentItem, mCurrentNote.path, mCurrentNote.value)
}
if (!it) {