mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
create an extra string resource
This commit is contained in:
parent
38d0a19307
commit
1db0d7daf2
2 changed files with 2 additions and 1 deletions
|
@ -326,5 +326,6 @@
|
|||
|
||||
<string name="shared_subject_header">shared</string>
|
||||
<string name="with_you_subject_header">with you</string>
|
||||
<string name="subject_token">%1$s %2$s >>%3$s<< %4$s</string>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue