prevent text selection on messages

Resolves #1274

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-05-31 11:34:36 +02:00
parent 563f476b35
commit 44533b889c
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
3 changed files with 10 additions and 5 deletions

View file

@ -55,6 +55,7 @@
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:textColor="@color/textColorMaxContrast"
android:textIsSelectable="false"
android:textSize="12sp" />
<androidx.emoji.widget.EmojiTextView
@ -62,7 +63,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:lineSpacingMultiplier="1.2"
android:textIsSelectable="true"
android:textIsSelectable="false"
app:layout_alignSelf="flex_start"
app:layout_flexGrow="1"
app:layout_wrapBefore="true" />
@ -73,6 +74,7 @@
android:layout_height="wrap_content"
android:layout_below="@id/messageText"
android:layout_marginStart="8dp"
android:textIsSelectable="false"
app:layout_alignSelf="center" />
</com.google.android.flexbox.FlexboxLayout>

View file

@ -50,8 +50,8 @@
android:layout_alignWithParentIfMissing="true"
android:lineSpacingMultiplier="1.2"
android:textColorHighlight="@color/nc_grey"
android:textIsSelectable="true"
tools:text="Talk to ayou later!" />
android:textIsSelectable="false"
tools:text="Talk to you later!" />
<TextView
android:id="@id/messageTime"
@ -59,6 +59,7 @@
android:layout_height="wrap_content"
android:layout_below="@id/messageText"
android:layout_marginStart="8dp"
android:textIsSelectable="false"
app:layout_alignSelf="center"
tools:text="10:35" />
@ -68,8 +69,8 @@
android:layout_height="wrap_content"
android:layout_below="@id/messageTime"
android:layout_marginStart="8dp"
app:layout_alignSelf="center"
android:contentDescription="@null" />
android:contentDescription="@null"
app:layout_alignSelf="center" />
</com.google.android.flexbox.FlexboxLayout>
</RelativeLayout>

View file

@ -46,6 +46,7 @@
android:layout_toEndOf="@id/quoteColoredView"
android:ellipsize="end"
android:textColor="@color/textColorMaxContrast"
android:textIsSelectable="false"
android:textSize="12sp"
tools:text="Jane Doe" />
@ -82,6 +83,7 @@
android:layout_below="@id/quotedMessageImage"
android:layout_alignStart="@id/quotedMessageAuthor"
android:lineSpacingMultiplier="1.2"
android:textIsSelectable="false"
android:textSize="14sp"
app:layout_alignSelf="flex_start"
app:layout_flexGrow="1"