From 141ab9f70c01bb340aefaf977b3a8d69305b7ba7 Mon Sep 17 00:00:00 2001 From: merkost Date: Sat, 15 Jul 2023 22:14:24 +1000 Subject: [PATCH] Backup file extension fix --- .../com/simplemobiletools/contacts/pro/extensions/Context.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/extensions/Context.kt index acfa96ce..1ed82973 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/extensions/Context.kt @@ -105,7 +105,7 @@ fun Context.backupContacts() { mkdirs() } - var exportFile = File(outputFolder, "$filename.json") + var exportFile = File(outputFolder, "$filename.vcf") var exportFilePath = exportFile.absolutePath val outputStream = try { if (hasProperStoredFirstParentUri(exportFilePath)) { @@ -118,7 +118,7 @@ fun Context.backupContacts() { var num = 0 while (getDoesFilePathExist(exportFilePath) && !exportFile.canWrite()) { num++ - exportFile = File(outputFolder, "${filename}_${num}.json") + exportFile = File(outputFolder, "${filename}_${num}.vcf") exportFilePath = exportFile.absolutePath } FileOutputStream(exportFile)