diff --git a/app/src/main/java/com/orgzly/android/repos/DocumentRepo.java b/app/src/main/java/com/orgzly/android/repos/DocumentRepo.java index d2b0068b..a507c6ce 100644 --- a/app/src/main/java/com/orgzly/android/repos/DocumentRepo.java +++ b/app/src/main/java/com/orgzly/android/repos/DocumentRepo.java @@ -194,7 +194,7 @@ public VersionedRook storeBook(File file, String repoRelativePath) throws IOExce } } - try (OutputStream out = context.getContentResolver().openOutputStream(destinationFile.getUri())) { + try (OutputStream out = context.getContentResolver().openOutputStream(destinationFile.getUri(), "wt")) { MiscUtils.writeFileToStream(file, out); }