浏览代码

Skip check for existing files when reading file data from local DB

Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
Dariusz Olszewski 2 年之前
父节点
当前提交
08db3923cb
共有 1 个文件被更改,包括 0 次插入10 次删除
  1. 0 10
      app/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java

+ 0 - 10
app/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java

@@ -882,16 +882,6 @@ public class FileDataStorageManager {
         ocFile.setParentId(nullToZero(fileEntity.getParent()));
         ocFile.setMimeType(fileEntity.getContentType());
         ocFile.setStoragePath(fileEntity.getStoragePath());
-        if (ocFile.getStoragePath() == null) {
-            // try to find existing file and bind it with current account;
-            // with the current update of SynchronizeFolderOperation, this won't be
-            // necessary anymore after a full synchronization of the account
-            File file = new File(FileStorageUtils.getDefaultSavePathFor(user.getAccountName(), ocFile));
-            if (file.exists()) {
-                ocFile.setStoragePath(file.getAbsolutePath());
-                ocFile.setLastSyncDateForData(file.lastModified());
-            }
-        }
         ocFile.setFileLength(nullToZero(fileEntity.getContentLength()));
         ocFile.setCreationTimestamp(nullToZero(fileEntity.getCreation()));
         ocFile.setModificationTimestamp(nullToZero(fileEntity.getModified()));