mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-23 21:55:57 +03:00
Hide keyboard when a Tracker SearchResultItem is clicked (#1168)
* Hide keyboard on select * Code Review Suggestion
This commit is contained in:
parent
d26c010e57
commit
7ca64a67c5
1 changed files with 5 additions and 1 deletions
|
@ -224,6 +224,7 @@ private fun SearchResultItem(
|
|||
) {
|
||||
val context = LocalContext.current
|
||||
val clipboardManager: ClipboardManager = LocalClipboardManager.current
|
||||
val focusManager = LocalFocusManager.current
|
||||
val type = trackSearch.publishing_type.toLowerCase(Locale.current).capitalize(Locale.current)
|
||||
val status = trackSearch.publishing_status.toLowerCase(Locale.current).capitalize(Locale.current)
|
||||
val description = trackSearch.summary.trim()
|
||||
|
@ -243,7 +244,10 @@ private fun SearchResultItem(
|
|||
)
|
||||
.combinedClickable(
|
||||
onLongClick = { dropDownMenuExpanded = true },
|
||||
onClick = onClick,
|
||||
onClick = {
|
||||
focusManager.clearFocus()
|
||||
onClick()
|
||||
},
|
||||
)
|
||||
.padding(12.dp),
|
||||
) {
|
||||
|
|
Loading…
Reference in a new issue