Truncate existing files when exporting OPML/HTML/Favorites

This commit is contained in:
cketti 2022-03-27 23:37:47 +02:00
parent e483f2edde
commit a115bf8cd7
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class DocumentFileExportWorker {
OutputStreamWriter writer = null; OutputStreamWriter writer = null;
try { try {
Uri uri = output.getUri(); Uri uri = output.getUri();
outputStream = context.getContentResolver().openOutputStream(uri); outputStream = context.getContentResolver().openOutputStream(uri, "wt");
if (outputStream == null) { if (outputStream == null) {
throw new IOException(); throw new IOException();
} }