From 74dc25b99f1697a7c0a713c00a7b08d61b3a30b1 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 7 Jan 2020 08:32:52 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/storage/Backup.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/help/storage/Backup.kt b/app/src/main/java/io/legado/app/help/storage/Backup.kt index b6960c41e..7f5b726ae 100644 --- a/app/src/main/java/io/legado/app/help/storage/Backup.kt +++ b/app/src/main/java/io/legado/app/help/storage/Backup.kt @@ -107,7 +107,7 @@ object Backup { private fun copyBackup(context: Context, uri: Uri) { DocumentFile.fromTreeUri(context, uri)?.let { treeDoc -> for (fileName in backupFileNames) { - val doc = treeDoc.findFile(fileName) ?: treeDoc.createFile("text/plain", fileName) + val doc = treeDoc.findFile(fileName) ?: treeDoc.createFile("", fileName) doc?.let { DocumentUtils.writeText( context,