Extract string resource.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-07-15 13:19:04 -07:00
parent 89f2429283
commit 0e7fcc6893
2 changed files with 4 additions and 1 deletions

View File

@ -70,6 +70,9 @@
</string> </string>
<string name="ConfirmIdentityDialog_accept">Accept</string> <string name="ConfirmIdentityDialog_accept">Accept</string>
<!-- ContactsDatabase -->
<string name="ContactsDatabase_message_s">Message %s</string>
<!-- ConversationItem --> <!-- ConversationItem -->
<string name="ConversationItem_message_size_d_kb">Message size: %d KB</string> <string name="ConversationItem_message_size_d_kb">Message size: %d KB</string>
<string name="ConversationItem_expires_s">Expires: %s</string> <string name="ConversationItem_expires_s">Expires: %s</string>

View File

@ -134,7 +134,7 @@ public class ContactsDatabase {
.withValue(ContactsContract.Data.MIMETYPE, "vnd.android.cursor.item/vnd.org.thoughtcrime.securesms.contact") .withValue(ContactsContract.Data.MIMETYPE, "vnd.android.cursor.item/vnd.org.thoughtcrime.securesms.contact")
.withValue(ContactsContract.Data.DATA1, e164number) .withValue(ContactsContract.Data.DATA1, e164number)
.withValue(ContactsContract.Data.DATA2, context.getString(R.string.app_name)) .withValue(ContactsContract.Data.DATA2, context.getString(R.string.app_name))
.withValue(ContactsContract.Data.DATA3, String.format("Message %s", e164number)) .withValue(ContactsContract.Data.DATA3, context.getString(R.string.ContactsDatabase_message_s, e164number))
.withYieldAllowed(true) .withYieldAllowed(true)
.build()); .build());
} }