switch to the newly created note at creation

This commit is contained in:
tibbi 2016-11-27 11:25:11 +01:00
parent c575415c51
commit 91fd8c27a3

View File

@ -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)
}
}