Quellcode durchsuchen

Merge pull request #393 from owncloud/fix_unshare_while_downloading

Fixed wrong local state of a file after a download finishes
masensio vor 11 Jahren
Ursprung
Commit
0f47656718
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/com/owncloud/android/files/services/FileDownloader.java

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

@@ -382,7 +382,7 @@ public class FileDownloader extends Service implements OnDatatransferProgressLis
      * Updates the OC File after a successful download.
      */
     private void saveDownloadedFile() {
-        OCFile file = mCurrentDownload.getFile();
+        OCFile file = mStorageManager.getFileById(mCurrentDownload.getFile().getFileId());
         long syncDate = System.currentTimeMillis();
         file.setLastSyncDateForProperties(syncDate);
         file.setLastSyncDateForData(syncDate);