mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Refactor ContactSelectionListFragment to use ContactSearch infrastructure.
This commit is contained in:
committed by
Nicholas Tinsley
parent
0f6bc0471c
commit
7fbfc09a89
@@ -120,11 +120,17 @@ class MultiselectForwardFragment :
|
||||
contactSearchRecycler = view.findViewById(R.id.contact_selection_list)
|
||||
contactSearchMediator = ContactSearchMediator(
|
||||
this,
|
||||
emptySet(),
|
||||
FeatureFlags.shareSelectionLimit(),
|
||||
!args.selectSingleRecipient,
|
||||
ContactSearchAdapter.DisplaySmsTag.DEFAULT,
|
||||
ContactSearchAdapter.DisplayPhoneNumber.NEVER,
|
||||
this::getConfiguration,
|
||||
this::filterContacts
|
||||
object : ContactSearchMediator.SimpleCallbacks() {
|
||||
override fun onBeforeContactsSelected(view: View?, contactSearchKeys: Set<ContactSearchKey>): Set<ContactSearchKey> {
|
||||
return filterContacts(view, contactSearchKeys)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
contactSearchRecycler.adapter = contactSearchMediator.adapter
|
||||
|
||||
Reference in New Issue
Block a user