Display unknown sender footer for unknown senders
// FREEBIE
BIN
res/drawable-hdpi/ic_block_white_24dp.png
Normal file
After Width: | Height: | Size: 478 B |
BIN
res/drawable-hdpi/ic_face_white_24dp.png
Normal file
After Width: | Height: | Size: 513 B |
BIN
res/drawable-hdpi/ic_person_add_white_24dp.png
Normal file
After Width: | Height: | Size: 289 B |
BIN
res/drawable-mdpi/ic_block_white_24dp.png
Normal file
After Width: | Height: | Size: 335 B |
BIN
res/drawable-mdpi/ic_face_white_24dp.png
Normal file
After Width: | Height: | Size: 356 B |
BIN
res/drawable-mdpi/ic_person_add_white_24dp.png
Normal file
After Width: | Height: | Size: 204 B |
BIN
res/drawable-xhdpi/ic_block_white_24dp.png
Normal file
After Width: | Height: | Size: 665 B |
BIN
res/drawable-xhdpi/ic_face_white_24dp.png
Normal file
After Width: | Height: | Size: 694 B |
BIN
res/drawable-xhdpi/ic_person_add_white_24dp.png
Normal file
After Width: | Height: | Size: 329 B |
BIN
res/drawable-xxhdpi/ic_block_white_24dp.png
Normal file
After Width: | Height: | Size: 973 B |
BIN
res/drawable-xxhdpi/ic_face_white_24dp.png
Normal file
After Width: | Height: | Size: 1022 B |
BIN
res/drawable-xxhdpi/ic_person_add_white_24dp.png
Normal file
After Width: | Height: | Size: 464 B |
BIN
res/drawable-xxxhdpi/ic_block_white_24dp.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-xxxhdpi/ic_face_white_24dp.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-xxxhdpi/ic_person_add_white_24dp.png
Normal file
After Width: | Height: | Size: 610 B |
95
res/layout/unknown_sender_view.xml
Normal file
@@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@color/white">
|
||||
|
||||
<TextView android:id="@+id/unknown_sender_label"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="25dp"
|
||||
android:textColor="?android:textColorSecondary"
|
||||
android:text="@string/unknown_sender_view__the_sender_is_not_in_your_contact_list"/>
|
||||
|
||||
|
||||
<LinearLayout android:id="@+id/block"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="25dp"
|
||||
android:clickable="true"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageView android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_block_white_24dp"
|
||||
android:tint="@color/signal_primary"/>
|
||||
|
||||
<TextView android:layout_marginLeft="15dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/unknown_sender_view__block"
|
||||
android:textAllCaps="true"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/signal_primary"
|
||||
android:textSize="14sp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout android:id="@+id/add_to_contacts"
|
||||
android:clickable="true"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="25dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageView android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_person_add_white_24dp"
|
||||
android:tint="@color/signal_primary"/>
|
||||
|
||||
<TextView android:layout_marginLeft="15dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/unknown_sender_view__add_to_contacts"
|
||||
android:textAllCaps="true"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/signal_primary"
|
||||
android:textSize="14sp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout android:id="@+id/share_profile"
|
||||
android:clickable="true"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="25dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageView android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_face_white_24dp"
|
||||
android:tint="@color/signal_primary"/>
|
||||
|
||||
<TextView android:layout_marginLeft="15dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/unknown_sender_view__don_t_add_but_make_my_profile_visible"
|
||||
android:textAllCaps="true"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/signal_primary"
|
||||
android:textSize="14sp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
@@ -617,6 +617,14 @@
|
||||
<string name="UpdateApkReadyListener_Signal_update">Signal update</string>
|
||||
<string name="UpdateApkReadyListener_a_new_version_of_signal_is_available_tap_to_update">A new version of Signal is available, tap to update</string>
|
||||
|
||||
<!-- UnknownSenderView -->
|
||||
<string name="UnknownSenderView_block_s">Block %s?</string>
|
||||
<string name="UnknownSenderView_blocked_contacts_will_no_longer_be_able_to_send_you_messages_or_call_you">Blocked contacts will no longer be able to send you messages or call you.</string>
|
||||
<string name="UnknownSenderView_block">Block</string>
|
||||
<string name="UnknownSenderView_share_profile_with_s">Share profile with %s?</string>
|
||||
<string name="UnknownSenderView_the_easiest_way_to_share_your_profile_information_is_to_add_the_sender_to_your_contacts">The easiest way to share your profile information is to add the sender to your contacts. If you do not wish to, you can still share your profile information this way.</string>
|
||||
<string name="UnknownSenderView_share_profile">Share profile</string>
|
||||
|
||||
<!-- UntrustedSendDialog -->
|
||||
<string name="UntrustedSendDialog_send_message">Send message?</string>
|
||||
<string name="UntrustedSendDialog_send">Send</string>
|
||||
@@ -1065,6 +1073,12 @@
|
||||
<string name="recipients_panel__to"><small>Enter a name or number</small></string>
|
||||
<string name="recipients_panel__add_members">Add members</string>
|
||||
|
||||
<!-- unknown_sender_view -->
|
||||
<string name="unknown_sender_view__the_sender_is_not_in_your_contact_list">The sender is not in your contact list</string>
|
||||
<string name="unknown_sender_view__block">BLOCK</string>
|
||||
<string name="unknown_sender_view__add_to_contacts">ADD TO CONTACTS</string>
|
||||
<string name="unknown_sender_view__don_t_add_but_make_my_profile_visible">DON\'T ADD, BUT MAKE MY PROFILE VISIBLE</string>
|
||||
|
||||
<!-- verify_display_fragment -->
|
||||
<string name="verify_display_fragment__if_you_wish_to_verify_the_security_of_your_end_to_end_encryption_with_s"><![CDATA[If you wish to verify the security of your encryption with %s, compare the number above with the number on their device. Alternatively, you can scan the code on their phone, or ask them to scan your code. <a href="https://whispersystems.org/redirect/safety-numbers">Learn more.</a>]]></string>
|
||||
<string name="verify_display_fragment__tap_to_scan">Tap to scan</string>
|
||||
@@ -1424,7 +1438,6 @@
|
||||
<string name="transport_selection_list_item__transport_icon">Transport icon</string>
|
||||
|
||||
|
||||
|
||||
<!-- EOF -->
|
||||
|
||||
</resources>
|
||||
|