From eae56238f9637525ba44c6dbb2f1366ede6ede85 Mon Sep 17 00:00:00 2001 From: "David A. Velasco" Date: Tue, 22 Mar 2016 12:22:19 +0100 Subject: [PATCH] Rewired code path to upload files sent from other apps --- src/com/owncloud/android/ui/activity/Uploader.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/com/owncloud/android/ui/activity/Uploader.java b/src/com/owncloud/android/ui/activity/Uploader.java index 2da6cbec36..b6e975fc7d 100644 --- a/src/com/owncloud/android/ui/activity/Uploader.java +++ b/src/com/owncloud/android/ui/activity/Uploader.java @@ -587,7 +587,7 @@ public class Uploader extends FileActivity } else { throw new SecurityException(); } - if (data == null) { + //if (data == null) { mRemoteCacheData.add(filePath); CopyTmpFileAsyncTask copyTask = new CopyTmpFileAsyncTask(this); Object[] params = {uri, filePath, mRemoteCacheData.size() - 1, @@ -595,7 +595,10 @@ public class Uploader extends FileActivity mNumCacheFile++; showWaitingCopyDialog(); copyTask.execute(params); - } + + //} else { + // TODO request to FileUploader with data as source file, resulting in lazy temporary copy + //} } else { throw new SecurityException(); }