فهرست منبع

save info to DB after downloading file

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 7 ماه پیش
والد
کامیت
693b06a456

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

@@ -313,6 +313,7 @@ public class SynchronizeFileOperation extends SyncOperation {
                 String filename = file.getFileName();
                 if (filename != null) {
                     if (result.isSuccess()) {
+                        new FileDownloadHelper().saveFile(file, operation, getStorageManager());
                         Log_OC.d(TAG, "requestForDownload completed for: " + file.getFileName());
                     } else {
                         Log_OC.d(TAG, "requestForDownload failed for: " + file.getFileName());

+ 1 - 0
app/src/main/java/com/owncloud/android/operations/SynchronizeFolderOperation.java

@@ -468,6 +468,7 @@ public class SynchronizeFolderOperation extends SyncOperation {
                     }
 
                     if (result.isSuccess()) {
+                        new FileDownloadHelper().saveFile(file, operation, getStorageManager());
                         Log_OC.d(TAG, "startDirectDownloads completed for: " + file.getFileName());
                     } else {
                         Log_OC.d(TAG, "startDirectDownloads failed for: " + file.getFileName());