Skip to content

Commit 65a4bb3

Browse files
author
Alex Knop
committed
fix docs that etag can't be read on
Signed-off-by: Alex Knop <[email protected]>
1 parent e8cb91f commit 65a4bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/owncloud/android/providers/DocumentsStorageProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public ParcelFileDescriptor openDocument(String documentId, String mode, Cancell
207207

208208
int accessMode = ParcelFileDescriptor.parseMode(mode);
209209
boolean writeOnly = (accessMode & MODE_WRITE_ONLY) != 0;
210-
boolean needsDownload = !ocFile.existsOnDevice() && (!writeOnly && hasServerChange(document));
210+
boolean needsDownload = !ocFile.existsOnDevice() || (!writeOnly && hasServerChange(document));
211211
if (needsDownload) {
212212
if (ocFile.getLocalModificationTimestamp() > ocFile.getLastSyncDateForData()) {
213213
// TODO show a conflict notification with a pending intent that shows a ConflictResolveDialog

0 commit comments

Comments
 (0)