feat: Enhance clickable interactions in ChatDetailScreen by removing indications and adding custom interaction sources
This commit is contained in:
@@ -497,7 +497,10 @@ fun ChatDetailScreen(
|
|||||||
if (isSavedMessages) PrimaryBlue
|
if (isSavedMessages) PrimaryBlue
|
||||||
else avatarColors.backgroundColor
|
else avatarColors.backgroundColor
|
||||||
)
|
)
|
||||||
.clickable {
|
.clickable(
|
||||||
|
indication = null,
|
||||||
|
interactionSource = remember { MutableInteractionSource() }
|
||||||
|
) {
|
||||||
keyboardController?.hide()
|
keyboardController?.hide()
|
||||||
focusManager.clearFocus()
|
focusManager.clearFocus()
|
||||||
onUserProfileClick()
|
onUserProfileClick()
|
||||||
@@ -529,7 +532,10 @@ fun ChatDetailScreen(
|
|||||||
// Информация о пользователе
|
// Информация о пользователе
|
||||||
Column(
|
Column(
|
||||||
modifier =
|
modifier =
|
||||||
Modifier.weight(1f).clickable {
|
Modifier.weight(1f).clickable(
|
||||||
|
indication = null,
|
||||||
|
interactionSource = remember { MutableInteractionSource() }
|
||||||
|
) {
|
||||||
keyboardController?.hide()
|
keyboardController?.hide()
|
||||||
focusManager.clearFocus()
|
focusManager.clearFocus()
|
||||||
onUserProfileClick()
|
onUserProfileClick()
|
||||||
@@ -1416,6 +1422,8 @@ private fun MessageBubble(
|
|||||||
modifier =
|
modifier =
|
||||||
Modifier.widthIn(max = 300.dp)
|
Modifier.widthIn(max = 300.dp)
|
||||||
.combinedClickable(
|
.combinedClickable(
|
||||||
|
indication = null,
|
||||||
|
interactionSource = remember { MutableInteractionSource() },
|
||||||
onClick = onClick,
|
onClick = onClick,
|
||||||
onLongClick = onLongClick
|
onLongClick = onLongClick
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user