mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-01-30 14:04:48 +01:00
switch to the newly created note at creation
This commit is contained in:
parent
c575415c51
commit
91fd8c27a3
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user