change the Note ID type to Long

This commit is contained in:
tibbi
2018-11-07 19:00:06 +01:00
parent 885170edfc
commit 99ee559836
10 changed files with 39 additions and 48 deletions

View File

@ -18,7 +18,7 @@ class NotesPagerAdapter(fm: FragmentManager, val notes: List<Note>, val activity
override fun getItem(position: Int): NoteFragment {
val bundle = Bundle()
val id = notes[position].id
bundle.putInt(NOTE_ID, id!!)
bundle.putInt(NOTE_ID, id!!.toInt())
if (fragments.containsKey(position)) {
return fragments[position]!!