Skip to content

Commit 44d33d3

Browse files
committed
Fix file updates being checked against wrong timestamp (#300)
1 parent f9008aa commit 44d33d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/io/xpipe/app/util/FileBridge.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public boolean registerChange() {
252252
// the modified time is the same for both write operations due to the file system modified time resolution being limited
253253
// We then can't identify changes purely based on the modified time, so the file size is the next best option
254254
// This might result in double change detection in rare cases, but that is irrelevant as it prevents files from being blanked
255-
var changed = !newDate.equals(getLastModified()) || newSize > lastSize;
255+
var changed = !newDate.equals(lastModified) || newSize > lastSize;
256256
lastSize = newSize;
257257
lastModified = newDate;
258258
return changed;

0 commit comments

Comments
 (0)