mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-31 17:00:31 +02:00
init the fragments array with 5 entries only
This commit is contained in:
parent
215883014c
commit
d1c0a27538
@ -10,10 +10,10 @@ import com.simplemobiletools.notes.fragments.NoteFragment
|
||||
import com.simplemobiletools.notes.models.Note
|
||||
|
||||
class NotesPagerAdapter(fm: FragmentManager, private val notes: List<Note>) : FragmentStatePagerAdapter(fm) {
|
||||
lateinit var fragments: SparseArray<NoteFragment>
|
||||
var fragments: SparseArray<NoteFragment>
|
||||
|
||||
init {
|
||||
fragments = SparseArray(10)
|
||||
fragments = SparseArray(5)
|
||||
}
|
||||
|
||||
override fun getCount() = notes.size
|
||||
|
Loading…
x
Reference in New Issue
Block a user