소스 검색

Rewired code path to upload files sent from other apps

David A. Velasco 9 년 전
부모
커밋
eae56238f9
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/com/owncloud/android/ui/activity/Uploader.java

+ 5 - 2
src/com/owncloud/android/ui/activity/Uploader.java

@@ -587,7 +587,7 @@ public class Uploader extends FileActivity
                     } else {
                     } else {
                         throw new SecurityException();
                         throw new SecurityException();
                     }
                     }
-                    if (data == null) {
+                    //if (data == null) {
                         mRemoteCacheData.add(filePath);
                         mRemoteCacheData.add(filePath);
                         CopyTmpFileAsyncTask copyTask = new CopyTmpFileAsyncTask(this);
                         CopyTmpFileAsyncTask copyTask = new CopyTmpFileAsyncTask(this);
                         Object[] params = {uri, filePath, mRemoteCacheData.size() - 1,
                         Object[] params = {uri, filePath, mRemoteCacheData.size() - 1,
@@ -595,7 +595,10 @@ public class Uploader extends FileActivity
                         mNumCacheFile++;
                         mNumCacheFile++;
                         showWaitingCopyDialog();
                         showWaitingCopyDialog();
                         copyTask.execute(params);
                         copyTask.execute(params);
-                    }
+
+                    //} else {
+                    // TODO request to FileUploader with data as source file, resulting in lazy temporary copy
+                    //}
                 } else {
                 } else {
                     throw new SecurityException();
                     throw new SecurityException();
                 }
                 }