瀏覽代碼

Review uploads for favourite files

masensio 9 年之前
父節點
當前提交
b59b0283bd

+ 0 - 1
src/com/owncloud/android/files/services/FileUploadService.java

@@ -492,7 +492,6 @@ public class FileUploadService extends Service implements OnDatatransferProgress
 
 
                         // storagePath inside upload is the temporary path. file
                         // storagePath inside upload is the temporary path. file
                         // contains the correct path used as db reference.
                         // contains the correct path used as db reference.
-                        ocUpload.getOCFile().setStoragePath(localPaths[i]);
                         long id = mUploadsStorageManager.storeUpload(ocUpload);
                         long id = mUploadsStorageManager.storeUpload(ocUpload);
                         newUpload.setOCUploadId(id);
                         newUpload.setOCUploadId(id);
 
 

+ 1 - 1
src/com/owncloud/android/operations/SynchronizeFileOperation.java

@@ -287,7 +287,7 @@ public class SynchronizeFileOperation extends SyncOperation {
     private void requestForUpload(OCFile file) {
     private void requestForUpload(OCFile file) {
         Intent i = new Intent(mContext, FileUploadService.class);
         Intent i = new Intent(mContext, FileUploadService.class);
         i.putExtra(FileUploadService.KEY_ACCOUNT, mAccount);
         i.putExtra(FileUploadService.KEY_ACCOUNT, mAccount);
-        i.putExtra(FileUploadService.KEY_FILE, (Parcelable)file);
+        i.putExtra(FileUploadService.KEY_FILE, file);
         /*i.putExtra(FileUploader.KEY_REMOTE_FILE, mRemotePath);
         /*i.putExtra(FileUploader.KEY_REMOTE_FILE, mRemotePath);
         // doing this we would lose the value of keepInSync in the road, and maybe it's not updated
         // doing this we would lose the value of keepInSync in the road, and maybe it's not updated
         in the database when the FileUploader service gets it!
         in the database when the FileUploader service gets it!