mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
switch to the newly created note at creation
This commit is contained in:
@ -140,9 +140,9 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
|
|||||||
val newNote = Note(0, it, "", TYPE_NOTE)
|
val newNote = Note(0, it, "", TYPE_NOTE)
|
||||||
val id = mDb.insertNote(newNote)
|
val id = mDb.insertNote(newNote)
|
||||||
mNotes = mDb.getNotes()
|
mNotes = mDb.getNotes()
|
||||||
updateSelectedNote(id)
|
|
||||||
invalidateOptionsMenu()
|
invalidateOptionsMenu()
|
||||||
initViewPager()
|
initViewPager()
|
||||||
|
updateSelectedNote(id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user