mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Handle click on reply navigation.
This commit is contained in:
committed by
Benoit Marty
parent
a60779a28c
commit
200b43246e
+1
-2
@@ -108,9 +108,8 @@ fun TimelineView(
|
|||||||
accessibilityManager.isTouchExplorationEnabled.not()
|
accessibilityManager.isTouchExplorationEnabled.not()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNUSED_PARAMETER")
|
|
||||||
fun inReplyToClicked(eventId: EventId) {
|
fun inReplyToClicked(eventId: EventId) {
|
||||||
// TODO implement this logic once we have support to 'jump to event X' in sliding sync
|
state.eventSink(TimelineEvents.FocusOnEvent(eventId))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Animate alpha when timeline is first displayed, to avoid flashes or glitching when viewing rooms
|
// Animate alpha when timeline is first displayed, to avoid flashes or glitching when viewing rooms
|
||||||
|
|||||||
+2
-3
@@ -417,7 +417,6 @@ private fun MessageSenderInformation(
|
|||||||
private fun MessageEventBubbleContent(
|
private fun MessageEventBubbleContent(
|
||||||
event: TimelineItem.Event,
|
event: TimelineItem.Event,
|
||||||
onMessageLongClick: () -> Unit,
|
onMessageLongClick: () -> Unit,
|
||||||
@Suppress("UNUSED_PARAMETER")
|
|
||||||
inReplyToClick: () -> Unit,
|
inReplyToClick: () -> Unit,
|
||||||
onTimestampClicked: () -> Unit,
|
onTimestampClicked: () -> Unit,
|
||||||
onLinkClicked: (String) -> Unit,
|
onLinkClicked: (String) -> Unit,
|
||||||
@@ -568,8 +567,8 @@ private fun MessageEventBubbleContent(
|
|||||||
val inReplyToModifier = Modifier
|
val inReplyToModifier = Modifier
|
||||||
.padding(top = topPadding, start = 8.dp, end = 8.dp)
|
.padding(top = topPadding, start = 8.dp, end = 8.dp)
|
||||||
.clip(RoundedCornerShape(6.dp))
|
.clip(RoundedCornerShape(6.dp))
|
||||||
// FIXME when a node is clickable, its contents won't be added to the semantics tree of its parent
|
// FIXME when a node is clickable, its contents won't be added to the semantics tree of its parent
|
||||||
// .clickable(enabled = true, onClick = inReplyToClick)
|
.clickable(onClick = inReplyToClick)
|
||||||
when (inReplyTo) {
|
when (inReplyTo) {
|
||||||
is InReplyToDetails.Ready -> {
|
is InReplyToDetails.Ready -> {
|
||||||
ReplyToContent(
|
ReplyToContent(
|
||||||
|
|||||||
Reference in New Issue
Block a user