Fix issue where last item in contact selection collection would not display.

This commit is contained in:
Alex Hart
2022-10-13 11:05:24 -03:00
committed by Greyson Parrelli
parent 7cdaf988f2
commit de29fc047e

View File

@@ -39,6 +39,10 @@ open class ContactSearchCollection<ContactRecord>(
}
fun getSublist(start: Int, end: Int): List<ContactSearchData> {
if (start == end) {
return emptyList()
}
val results = mutableListOf<ContactSearchData>()
val startOffset = if (start == 0 && section.includeHeader) {