mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-24 12:08:44 +02: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 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user