From 03d6662e5b117a7f6baa2f6a496b0b81066133e6 Mon Sep 17 00:00:00 2001 From: merkost Date: Thu, 20 Jul 2023 12:34:18 +1000 Subject: [PATCH] Fixed file extension to .vcf --- .../contacts/pro/dialogs/ManageAutoBackupsDialog.kt | 2 +- app/src/main/res/layout/dialog_manage_automatic_backups.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/dialogs/ManageAutoBackupsDialog.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/dialogs/ManageAutoBackupsDialog.kt index b5677528..8aedcd8e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/dialogs/ManageAutoBackupsDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/dialogs/ManageAutoBackupsDialog.kt @@ -76,7 +76,7 @@ class ManageAutoBackupsDialog(private val activity: SimpleActivity, onSuccess: ( when { filename.isEmpty() -> activity.toast(R.string.empty_name) filename.isAValidFilename() -> { - val file = File(backupFolder, "$filename.ics") + val file = File(backupFolder, "$filename.vcf") if (file.exists() && !file.canWrite()) { activity.toast(R.string.name_taken) return@setOnClickListener diff --git a/app/src/main/res/layout/dialog_manage_automatic_backups.xml b/app/src/main/res/layout/dialog_manage_automatic_backups.xml index 6816bd4a..21690ff2 100644 --- a/app/src/main/res/layout/dialog_manage_automatic_backups.xml +++ b/app/src/main/res/layout/dialog_manage_automatic_backups.xml @@ -35,7 +35,7 @@ android:layout_height="wrap_content" android:layout_marginStart="@dimen/activity_margin" android:layout_marginEnd="@dimen/activity_margin" - android:hint="@string/filename_without_json" + android:hint="@string/filename_without_vcf" app:endIconDrawable="@drawable/ic_info_vector" app:endIconMode="custom">