We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af3ed99 commit 32a88abCopy full SHA for 32a88ab
1 file changed
app/src/main/java/org/schabi/newpipe/local/subscription/workers/SubscriptionExportWorker.kt
@@ -46,7 +46,8 @@ class SubscriptionExportWorker(
46
setForeground(createForegroundInfo(title))
47
48
withContext(Dispatchers.IO) {
49
- applicationContext.contentResolver.openOutputStream(uri)?.use {
+ // Truncate file if it already exists
50
+ applicationContext.contentResolver.openOutputStream(uri, "wt")?.use {
51
ImportExportJsonHelper.writeTo(subscriptions, it)
52
}
53
0 commit comments