mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 03:11:10 +01:00
Add support for message and thread results.
This commit is contained in:
committed by
Greyson Parrelli
parent
8dd1d3bdeb
commit
b4a34599d7
@@ -206,7 +206,7 @@ class ContactSearchPagedDataSourceTest {
|
||||
private class ArbitraryRepoFake : ArbitraryRepository {
|
||||
override fun getSize(section: ContactSearchConfiguration.Section.Arbitrary, query: String?): Int = section.types.size
|
||||
|
||||
override fun getData(section: ContactSearchConfiguration.Section.Arbitrary, query: String?, startIndex: Int, endIndex: Int): List<ContactSearchData.Arbitrary> {
|
||||
override fun getData(section: ContactSearchConfiguration.Section.Arbitrary, query: String?, startIndex: Int, endIndex: Int, totalSearchSize: Int): List<ContactSearchData.Arbitrary> {
|
||||
return section.types.toList().slice(startIndex..endIndex).map {
|
||||
ContactSearchData.Arbitrary(it, bundleOf("n" to it))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user