diff --git a/app/src/main/res/layout/item_conversation.xml b/app/src/main/res/layout/item_conversation.xml index 862b71175..13d754220 100644 --- a/app/src/main/res/layout/item_conversation.xml +++ b/app/src/main/res/layout/item_conversation.xml @@ -9,7 +9,8 @@ android:clipChildren="false" android:clipToPadding="false" android:paddingStart="12dp" - android:paddingEnd="14dp"> + android:paddingEnd="14dp" + android:textDirection="anyRtl"> + android:focusable="true" + android:textDirection="anyRtl"> + android:clipToPadding="false" + android:textDirection="anyRtl"> getCustomSpanForTag(text, tags, span, listener) @@ -153,7 +158,8 @@ fun setClickableText( } removeSpan(span) - setSpan(customSpan, start, end, flags) + replace(start, end, wrappedText) + setSpan(customSpan, start, end + 1, flags) } @VisibleForTesting