浏览代码

subject mail populated when user shares file/folder

Keith Abdulla 10 年之前
父节点
当前提交
4957791128
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/com/owncloud/android/operations/CreateShareOperation.java

+ 2 - 0
src/com/owncloud/android/operations/CreateShareOperation.java

@@ -128,6 +128,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() + " shared >>" + file.getFileName() + "<< with you");
             file.setPublicLink(share.getShareLink());
             file.setShareByLink(true);
             getStorageManager().saveFile(file);