From 422eb8e31e8ebf10e4391cad6f7cb8d94ef13072 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 16 Mar 2026 14:32:16 +0100 Subject: [PATCH] Allow chat bubble text selection --- CHANGELOG.md | 1 + app/src/main/res/layout/chat_bubble_incoming.xml | 1 + app/src/main/res/layout/chat_bubble_outgoing.xml | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 597f83f81..79b73e837 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ Group changes to describe their impact on the project, as follows: - Added a vu meter for recording & playback volumes (must be enabled in developer settings) - Added support for HDMI audio devices - Added video preview during in-call conversation +- Allow text selection in chat bubble (once long press menu is displayed) ### Changed - No longer follow TelecomManager audio endpoint during calls, using our own routing policy diff --git a/app/src/main/res/layout/chat_bubble_incoming.xml b/app/src/main/res/layout/chat_bubble_incoming.xml index 604d429ab..885b51b1c 100644 --- a/app/src/main/res/layout/chat_bubble_incoming.xml +++ b/app/src/main/res/layout/chat_bubble_incoming.xml @@ -232,6 +232,7 @@ android:text="@{model.text, default=`Lorem ipsum dolor sit amet`}" android:textSize="@{model.isTextEmoji ? @dimen/chat_bubble_emoji_only_text_size : @dimen/chat_bubble_text_size, default=@dimen/chat_bubble_text_size}" android:textColor="?attr/color_main2_800" + android:textIsSelectable="true" android:gravity="center_vertical|start" android:includeFontPadding="@{!model.isTextEmoji}" android:visibility="@{model.text.length() > 0 && !model.hasBeenRetracted ? View.VISIBLE : View.GONE}"/> diff --git a/app/src/main/res/layout/chat_bubble_outgoing.xml b/app/src/main/res/layout/chat_bubble_outgoing.xml index 237a06551..61a4cc1dc 100644 --- a/app/src/main/res/layout/chat_bubble_outgoing.xml +++ b/app/src/main/res/layout/chat_bubble_outgoing.xml @@ -204,6 +204,7 @@ android:text="@{model.text, default=`Lorem ipsum dolor sit amet`}" android:textSize="@{model.isTextEmoji ? @dimen/chat_bubble_emoji_only_text_size : @dimen/chat_bubble_text_size, default=@dimen/chat_bubble_text_size}" android:textColor="?attr/color_main2_800" + android:textIsSelectable="true" android:gravity="center_vertical|start" android:includeFontPadding="@{!model.isTextEmoji}" android:visibility="@{model.text.length() > 0 && !model.hasBeenRetracted ? View.VISIBLE : View.GONE}"/>