Support copying links on long click.

Fixes #6343
Closes #6454
This commit is contained in:
Ahmed Ibrahim Khalil
2017-03-28 14:34:36 +02:00
committed by Moxie Marlinspike
parent f07ce7b1f1
commit c3164a8e84
6 changed files with 203 additions and 7 deletions

View File

@@ -75,9 +75,7 @@
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?conversation_item_received_text_primary_color"
android:textColorLink="?conversation_item_received_text_primary_color"
android:textSize="@dimen/conversation_item_body_text_size"
android:autoLink="all"
android:linksClickable="true" />
android:textSize="@dimen/conversation_item_body_text_size" />
<LinearLayout android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@@ -57,12 +57,10 @@
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
android:id="@+id/conversation_item_body"
android:autoLink="all"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:linksClickable="true"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?conversation_item_sent_text_primary_color"
android:textColorLink="?conversation_item_sent_text_primary_color"

View File

@@ -97,6 +97,7 @@
<string name="ConversationItem_click_to_approve_unencrypted_mms_dialog_title">Fallback to unencrypted MMS?</string>
<string name="ConversationItem_click_to_approve_unencrypted_dialog_message">This message will <b>not</b> be encrypted because the recipient is no longer a Signal user.\n\nSend unsecured message?</string>
<string name="ConversationItem_unable_to_open_media">Can\'t find an app able to open this media.</string>
<string name="ConversationItem_copied_text">Copied %s</string>
<string name="ConversationItem_from_s">from %s</string>
<string name="ConversationItem_to_s">to %s</string>