From 0e7fcc68939aff08c704cfacf95b98f6c12de191 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Wed, 15 Jul 2015 13:19:04 -0700 Subject: [PATCH] Extract string resource. // FREEBIE --- res/values/strings.xml | 3 +++ src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 3474bc0f32..aeed1338c7 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -70,6 +70,9 @@ Accept + + Message %s + Message size: %d KB Expires: %s diff --git a/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java b/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java index 57aced115e..38e2df5331 100644 --- a/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java +++ b/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java @@ -134,7 +134,7 @@ public class ContactsDatabase { .withValue(ContactsContract.Data.MIMETYPE, "vnd.android.cursor.item/vnd.org.thoughtcrime.securesms.contact") .withValue(ContactsContract.Data.DATA1, e164number) .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) .build()); }