Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ public ParcelFileDescriptor openDocument(String documentId, String mode, Cancell
showToast();
}
}
} catch (Exception exception) {
} catch (Exception e) {
Log_OC.e(TAG, "Error syncing file", e);
showToast();
}
});
Expand All @@ -253,7 +254,7 @@ public ParcelFileDescriptor openDocument(String documentId, String mode, Cancell
try {
syncThread.join();
} catch (InterruptedException e) {
Log.e(TAG, "Failed to wait for thread to finish");
Log.e(TAG, "Failed to wait for thread to finish", e);
}
}

Expand All @@ -266,6 +267,8 @@ public ParcelFileDescriptor openDocument(String documentId, String mode, Cancell

if (isWrite) {
try {
// reset last sync date to ensure we will be syncing this write to the server
ocFile.setLastSyncDateForData(0);
Handler handler = new Handler(context.getMainLooper());
return ParcelFileDescriptor.open(file, accessMode, handler, l -> {
RemoteOperationResult result = new SynchronizeFileOperation(newFile, oldFile, user, true,
Expand Down