reuse some resources from the Commons lib

This commit is contained in:
tibbi
2017-01-06 19:32:04 +01:00
parent 9585c3912d
commit c6b81f45f2
26 changed files with 27 additions and 736 deletions

View File

@ -10,11 +10,7 @@ import com.simplemobiletools.notes.fragments.NoteFragment
import com.simplemobiletools.notes.models.Note
class NotesPagerAdapter(fm: FragmentManager, private val notes: List<Note>) : FragmentStatePagerAdapter(fm) {
var fragments: SparseArray<NoteFragment>
init {
fragments = SparseArray(5)
}
var fragments: SparseArray<NoteFragment> = SparseArray(5)
override fun getCount() = notes.size