Jelajahi Sumber

wrong storage location

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 4 tahun lalu
induk
melakukan
8966803e39

+ 1 - 1
src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java

@@ -535,7 +535,7 @@ public class RefreshFolderOperation extends RemoteOperation {
                     localFile.getModificationTimestampAtLastSyncForData()
             );
             if (localFile.isEncrypted()) {
-                updatedFile.setStoragePath(mLocalFolder.getDecryptedRemotePath() + localFile.getFileName());
+                updatedFile.setStoragePath(mLocalFolder.getStoragePath() + PATH_SEPARATOR + localFile.getFileName());
             } else {
                 updatedFile.setStoragePath(localFile.getStoragePath());
             }

+ 1 - 1
src/main/java/com/owncloud/android/utils/FileStorageUtils.java

@@ -98,7 +98,7 @@ public final class FileStorageUtils {
      * file.
      */
     public static String getDefaultSavePathFor(String accountName, OCFile file) {
-        return getSavePath(accountName) + file.getStoragePath();
+        return getSavePath(accountName) + file.getDecryptedRemotePath();
     }
 
     /**