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

fork-5.53.8
Alex Hart 2022-10-13 11:05:24 -03:00 zatwierdzone przez Greyson Parrelli
rodzic 7cdaf988f2
commit de29fc047e
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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) {