mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
adding some crashfixes
This commit is contained in:
@ -22,7 +22,9 @@ class NotesPagerAdapter(fm: FragmentManager, val notes: List<Note>, val activity
|
||||
val bundle = Bundle()
|
||||
val note = notes[position]
|
||||
val id = note.id
|
||||
bundle.putLong(NOTE_ID, id!!)
|
||||
if (id != null) {
|
||||
bundle.putLong(NOTE_ID, id)
|
||||
}
|
||||
|
||||
if (fragments.containsKey(position)) {
|
||||
return fragments[position]!!
|
||||
|
Reference in New Issue
Block a user