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;
|
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue