mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Add split pane UI for add to groups screen.
This commit is contained in:
@@ -68,6 +68,7 @@ fun RecipientPicker(
|
||||
searchQuery: String,
|
||||
displayModes: Set<RecipientPicker.DisplayMode> = setOf(RecipientPicker.DisplayMode.ALL),
|
||||
selectionLimits: SelectionLimits? = ContactSelectionArguments.Defaults.SELECTION_LIMITS,
|
||||
includeRecents: Boolean = ContactSelectionArguments.Defaults.INCLUDE_RECENTS,
|
||||
isRefreshing: Boolean,
|
||||
focusAndShowKeyboard: Boolean = LocalConfiguration.current.screenHeightDp.dp > 600.dp,
|
||||
preselectedRecipients: Set<RecipientId> = emptySet(),
|
||||
@@ -109,6 +110,7 @@ fun RecipientPicker(
|
||||
displayModes = displayModes,
|
||||
selectionLimits = selectionLimits,
|
||||
searchQuery = searchQuery,
|
||||
includeRecents = includeRecents,
|
||||
isRefreshing = isRefreshing,
|
||||
preselectedRecipients = preselectedRecipients,
|
||||
pendingRecipientSelections = pendingRecipientSelections,
|
||||
@@ -128,6 +130,7 @@ fun RecipientPicker(
|
||||
private fun RecipientSearchResultsList(
|
||||
displayModes: Set<RecipientPicker.DisplayMode>,
|
||||
searchQuery: String,
|
||||
includeRecents: Boolean,
|
||||
isRefreshing: Boolean,
|
||||
preselectedRecipients: Set<RecipientId>,
|
||||
pendingRecipientSelections: Set<RecipientId>,
|
||||
@@ -145,6 +148,7 @@ private fun RecipientSearchResultsList(
|
||||
enableFindByUsername = callbacks.findByUsername != null,
|
||||
enableFindByPhoneNumber = callbacks.findByPhoneNumber != null,
|
||||
showCallButtons = callbacks.newCall != null,
|
||||
includeRecents = includeRecents,
|
||||
currentSelection = preselectedRecipients,
|
||||
selectionLimits = selectionLimits,
|
||||
recyclerPadBottom = with(LocalDensity.current) { bottomPadding?.toPx()?.toInt() ?: ContactSelectionArguments.Defaults.RECYCLER_PADDING_BOTTOM },
|
||||
|
||||
Reference in New Issue
Block a user