subject mail populated when user shares file/folder

This commit is contained in:
Keith Abdulla 2014-12-06 02:07:35 -08:00
parent 940f0cc89c
commit 4957791128

View file

@ -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);