Add copy and compare safety numbers from clipboard actions

// FREEBIE
This commit is contained in:
Moxie Marlinspike
2016-11-14 19:50:29 -08:00
parent ca3337232b
commit b55a7ff5c0
6 changed files with 127 additions and 20 deletions

View File

@@ -48,11 +48,17 @@
</FrameLayout>
<TableLayout android:layout_width="wrap_content"
<TableLayout android:id="@+id/number_table"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp">
android:layout_marginTop="5dp"
android:clickable="true"
android:focusable="true">
<TableRow android:gravity="center_horizontal"
android:clickable="false"
android:focusable="false">
<TableRow android:gravity="center_horizontal">
<TextView android:id="@+id/code_first"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/menu_copy"
android:title="@string/verify_display_fragment_context_menu__copy_to_clipboard"/>
<item android:id="@+id/menu_compare"
android:title="@string/verify_display_fragment_context_menu__compare_with_clipboard"/>
</menu>

View File

@@ -569,6 +569,7 @@
<string name="VerifyIdentityActivity_share_safety_numbers_via">Share safety numbers via...</string>
<string name="VerifyIdentityActivity_our_signal_safety_numbers">Our Signal safety numbers:</string>
<string name="VerifyIdentityActivity_no_app_to_share_to">It looks like you don\'t have any apps to share to.</string>
<string name="VerifyIdentityActivity_no_safety_numbers_to_compare_were_found_in_the_clipboard">No safety numbers to compare were found in the clipboard</string>
<!-- KeyExchangeInitiator -->
<string name="KeyExchangeInitiator_initiate_despite_existing_request_question">Initiate despite existing request?</string>
@@ -1210,6 +1211,10 @@
<string name="text_secure_normal__invite_friends">Invite friends</string>
<string name="text_secure_normal__help">Help</string>
<!-- verify_display_fragment -->
<string name="verify_display_fragment_context_menu__copy_to_clipboard">Copy to clipboard</string>
<string name="verify_display_fragment_context_menu__compare_with_clipboard">Compare with clipboard</string>
<!-- reminder_header -->
<string name="reminder_header_outdated_build">Your version of Signal is outdated</string>
<plurals name="reminder_header_outdated_build_details">
@@ -1268,7 +1273,6 @@
<string name="transport_selection_list_item__transport_icon">Transport icon</string>
<!-- EOF -->
</resources>

View File

@@ -231,6 +231,8 @@
<item name="android:fontFamily">monospace</item>
<item name="android:typeface">monospace</item>
<item name="android:textSize">17sp</item>
<item name="android:clickable">false</item>
<item name="android:focusable">false</item>
</style>
</resources>