From 44d33d32f47829fe5f1958e83afaafb4807e2700 Mon Sep 17 00:00:00 2001 From: crschnick Date: Tue, 16 Jul 2024 09:58:45 +0000 Subject: [PATCH] Fix file updates being checked against wrong timestamp (#300) --- app/src/main/java/io/xpipe/app/util/FileBridge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/xpipe/app/util/FileBridge.java b/app/src/main/java/io/xpipe/app/util/FileBridge.java index dd24cb5d9..45d7a7c01 100644 --- a/app/src/main/java/io/xpipe/app/util/FileBridge.java +++ b/app/src/main/java/io/xpipe/app/util/FileBridge.java @@ -252,7 +252,7 @@ public class FileBridge { // the modified time is the same for both write operations due to the file system modified time resolution being limited // We then can't identify changes purely based on the modified time, so the file size is the next best option // This might result in double change detection in rare cases, but that is irrelevant as it prevents files from being blanked - var changed = !newDate.equals(getLastModified()) || newSize > lastSize; + var changed = !newDate.equals(lastModified) || newSize > lastSize; lastSize = newSize; lastModified = newDate; return changed;