diff options
author | cketti <ck@cketti.de> | 2022-03-27 23:37:47 +0200 |
---|---|---|
committer | cketti <ck@cketti.de> | 2022-03-27 23:37:47 +0200 |
commit | a115bf8cd76f1654dda2e8954067b67073901669 (patch) | |
tree | 48ed4d99d658d4851d8717c1661fc878ec635966 /app/src/main | |
parent | e483f2edde8741d0e724d5c10a1012cf76cd329e (diff) | |
download | AntennaPod-a115bf8cd76f1654dda2e8954067b67073901669.zip |
Truncate existing files when exporting OPML/HTML/Favorites
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/asynctask/DocumentFileExportWorker.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/asynctask/DocumentFileExportWorker.java b/app/src/main/java/de/danoeh/antennapod/asynctask/DocumentFileExportWorker.java index 73e19c746..8acfcb58f 100644 --- a/app/src/main/java/de/danoeh/antennapod/asynctask/DocumentFileExportWorker.java +++ b/app/src/main/java/de/danoeh/antennapod/asynctask/DocumentFileExportWorker.java @@ -36,7 +36,7 @@ public class DocumentFileExportWorker { OutputStreamWriter writer = null; try { Uri uri = output.getUri(); - outputStream = context.getContentResolver().openOutputStream(uri); + outputStream = context.getContentResolver().openOutputStream(uri, "wt"); if (outputStream == null) { throw new IOException(); } |