From 1db0d7daf2464b97e10f30e999ffdebfbb4975ab Mon Sep 17 00:00:00 2001 From: Keith Abdulla Date: Tue, 23 Dec 2014 09:31:59 -0800 Subject: [PATCH] create an extra string resource --- res/values/strings.xml | 1 + src/com/owncloud/android/operations/CreateShareOperation.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 04a88ad637..de6ca8d17b 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -326,5 +326,6 @@ shared with you + %1$s %2$s >>%3$s<< %4$s diff --git a/src/com/owncloud/android/operations/CreateShareOperation.java b/src/com/owncloud/android/operations/CreateShareOperation.java index 72cbee4f2e..fc44f530b2 100644 --- a/src/com/owncloud/android/operations/CreateShareOperation.java +++ b/src/com/owncloud/android/operations/CreateShareOperation.java @@ -133,7 +133,7 @@ public class CreateShareOperation extends SyncOperation { OCFile file = getStorageManager().getFileByPath(mPath); if (file!=null) { mSendIntent.putExtra(Intent.EXTRA_TEXT, share.getShareLink()); - mSendIntent.putExtra(Intent.EXTRA_SUBJECT, String.format("%s %s >>%s<< %s", + mSendIntent.putExtra(Intent.EXTRA_SUBJECT, String.format(mContext.getString(R.string.subject_token), getClient().getCredentials().getUsername(), mContext.getString(R.string.shared_subject_header), file.getFileName(), mContext.getString(R.string.with_you_subject_header))); file.setPublicLink(share.getShareLink());