X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/5fc7cd13e7e561ef528e12d2fa088b58e35e00d0..900563e245f6f341a3062bd1bae7fca433509ee6:/src/com/owncloud/android/operations/DownloadFileOperation.java?ds=inline diff --git a/src/com/owncloud/android/operations/DownloadFileOperation.java b/src/com/owncloud/android/operations/DownloadFileOperation.java index a35a0163..c732c8b7 100644 --- a/src/com/owncloud/android/operations/DownloadFileOperation.java +++ b/src/com/owncloud/android/operations/DownloadFileOperation.java @@ -52,7 +52,7 @@ public class DownloadFileOperation extends RemoteOperation { private static final String TAG = DownloadFileOperation.class.getCanonicalName(); - private Account mAccount = null; + private Account mAccount; private OCFile mFile; private Set mDataTransferListeners = new HashSet(); private final AtomicBoolean mCancellationRequested = new AtomicBoolean(false); @@ -90,7 +90,7 @@ public class DownloadFileOperation extends RemoteOperation { } public String getMimeType() { - String mimeType = mFile.getMimetype(); + String mimeType = mFile.getMimetype(); // TODO fix the mime types in OCFiles FOREVER if (mimeType == null || mimeType.length() <= 0) { try { mimeType = MimeTypeMap.getSingleton() @@ -119,7 +119,7 @@ public class DownloadFileOperation extends RemoteOperation { protected RemoteOperationResult run(WebdavClient client) { RemoteOperationResult result = null; File newFile = null; - boolean moved = false; + boolean moved = true; /// download will be performed to a temporal file, then moved to the final location File tmpFile = new File(getTmpPath());