X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/1704c4f788dc59a642d674134cadcfd674432fcc..3d3046dc264792475c72987afc25beae23da4dc6:/src/com/owncloud/android/operations/CreateShareOperation.java diff --git a/src/com/owncloud/android/operations/CreateShareOperation.java b/src/com/owncloud/android/operations/CreateShareOperation.java index 6247c6d4..4394b18d 100644 --- a/src/com/owncloud/android/operations/CreateShareOperation.java +++ b/src/com/owncloud/android/operations/CreateShareOperation.java @@ -1,4 +1,6 @@ /* ownCloud Android client application + * + * @author masensio * Copyright (C) 2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -19,9 +21,6 @@ package com.owncloud.android.operations; /** * Creates a new share from a given file - * - * @author masensio - * */ import android.content.Context; @@ -133,9 +132,8 @@ 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, getClient().getCredentials().getUsername() + " " + - mContext.getString(R.string.shared_subject_header) + " >>" + file.getFileName() + "<< " + - mContext.getString(R.string.with_you_subject_header)); + mSendIntent.putExtra(Intent.EXTRA_SUBJECT, String.format(mContext.getString(R.string.subject_token), + getClient().getCredentials().getUsername(), file.getFileName())); file.setPublicLink(share.getShareLink()); file.setShareByLink(true); getStorageManager().saveFile(file);