瀏覽代碼

Fixed broken initialization of UploadFileOperation

David A. Velasco 9 年之前
父節點
當前提交
1f3ff26001

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

@@ -40,7 +40,6 @@ import android.os.Message;
 import android.os.Process;
 import android.support.v4.app.NotificationCompat;
 import android.util.Pair;
-import android.webkit.MimeTypeMap;
 
 import com.owncloud.android.R;
 import com.owncloud.android.authentication.AccountUtils;

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

@@ -203,7 +203,7 @@ public class UploadFileOperation extends RemoteOperation {
         mFile = obtainNewOCFileToUpload(
                 upload.getRemotePath(),
                 upload.getLocalPath(),
-                getMimeType()
+                upload.getMimeType()
         );
         mRemotePath = upload.getRemotePath();
         mChunked = chunked;