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 4a9b5df3..cfbd97c9 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt @@ -140,9 +140,9 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener { val newNote = Note(0, it, "", TYPE_NOTE) val id = mDb.insertNote(newNote) mNotes = mDb.getNotes() - updateSelectedNote(id) invalidateOptionsMenu() initViewPager() + updateSelectedNote(id) } }