Remove is_uploading field from database
[pub/Android/ownCloud.git] / src / com / owncloud / android / files / services / FileDownloader.java
index eb870e1..3bf6dd4 100644 (file)
@@ -415,6 +415,7 @@ public class FileDownloader extends Service implements OnDatatransferProgressLis
         file.setStoragePath(mCurrentDownload.getSavePath());
         file.setFileLength((new File(mCurrentDownload.getSavePath()).length()));
         file.setRemoteId(mCurrentDownload.getFile().getRemoteId());
+        file.setDownloading(false);
         mStorageManager.saveFile(file);
         mStorageManager.triggerMediaScan(file.getStoragePath());
     }