diff --git a/app/src/main/java/com/money/manager/ex/core/docstorage/FileStorageHelper.java b/app/src/main/java/com/money/manager/ex/core/docstorage/FileStorageHelper.java index 685a674fdb..d00d69f8e9 100644 --- a/app/src/main/java/com/money/manager/ex/core/docstorage/FileStorageHelper.java +++ b/app/src/main/java/com/money/manager/ex/core/docstorage/FileStorageHelper.java @@ -190,6 +190,9 @@ private void pullDatabase(DatabaseMetadata metadata) { return; } + DocFileMetadata remote = getRemoteMetadata(uri); + metadata.remoteLastChangedDate = remote.lastModified.toIsoString(); + // Store the local snapshot timestamp, the time when the file was downloaded. MmxDate localSnapshot = getLocalFileModifiedDate(metadata); metadata.localSnapshotTimestamp = localSnapshot.toIsoString(); @@ -375,7 +378,7 @@ private void downloadDatabase(Uri uri, String localPath) throws Exception { // Replace local database with downloaded version File localDatabaseFile = new File(localPath); - Timber.i("%s %s %s", tempDatabaseFile.toPath(), localDatabaseFile.toPath(), localPath); + Timber.d("%s %s %s", tempDatabaseFile.toPath(), localDatabaseFile.toPath(), localPath); // StandardCopyOption.REPLACE_EXISTING ensures that the destination file is replaced if it exists Files.move(tempDatabaseFile, localDatabaseFile); }