From 4957791128cb867e3893a046f7dafcd6e125fa06 Mon Sep 17 00:00:00 2001 From: Keith Abdulla Date: Sat, 6 Dec 2014 02:07:35 -0800 Subject: [PATCH] subject mail populated when user shares file/folder --- src/com/owncloud/android/operations/CreateShareOperation.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/owncloud/android/operations/CreateShareOperation.java b/src/com/owncloud/android/operations/CreateShareOperation.java index b563790fda..5b5e107f26 100644 --- a/src/com/owncloud/android/operations/CreateShareOperation.java +++ b/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);