Skip to content

Commit

Permalink
fix docs that etag can't be read on
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Knop <[email protected]>
  • Loading branch information
Alex Knop committed Feb 10, 2025
1 parent 0362593 commit 4c559c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public ParcelFileDescriptor openDocument(String documentId, String mode, Cancell

int accessMode = ParcelFileDescriptor.parseMode(mode);
boolean writeOnly = (accessMode & MODE_WRITE_ONLY) != 0;
boolean needsDownload = !ocFile.existsOnDevice() && (!writeOnly && hasServerChange(document));
boolean needsDownload = !ocFile.existsOnDevice() || (!writeOnly && hasServerChange(document));
if (needsDownload) {
if (ocFile.getLocalModificationTimestamp() > ocFile.getLastSyncDateForData()) {
// TODO show a conflict notification with a pending intent that shows a ConflictResolveDialog
Expand Down

0 comments on commit 4c559c3

Please sign in to comment.