From 82722814397be4d4e6ef706da53c195052bdf6e7 Mon Sep 17 00:00:00 2001 From: vincent Bourgmayer Date: Wed, 15 Mar 2023 13:37:40 +0100 Subject: [PATCH] use remote file's last modified value for downloaded file --- .../foundation/e/drive/operations/DownloadFileOperation.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/foundation/e/drive/operations/DownloadFileOperation.java b/app/src/main/java/foundation/e/drive/operations/DownloadFileOperation.java index 5a3e9aa6..a5b271d5 100644 --- a/app/src/main/java/foundation/e/drive/operations/DownloadFileOperation.java +++ b/app/src/main/java/foundation/e/drive/operations/DownloadFileOperation.java @@ -137,6 +137,7 @@ public class DownloadFileOperation extends RemoteOperation { return FORBIDDEN; } + targetFile.setLastModified(remoteFile.getModifiedTimestamp()); syncedFileState.setLocalLastModified(targetFile.lastModified()) .setLastETAG(remoteFile.getEtag()); -- GitLab