Truncate existing files when exporting OPML/HTML/Favorites
This commit is contained in:
parent
e483f2edde
commit
a115bf8cd7
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue