Fixed file extension to .vcf
This commit is contained in:
parent
8b815df884
commit
03d6662e5b
|
@ -76,7 +76,7 @@ class ManageAutoBackupsDialog(private val activity: SimpleActivity, onSuccess: (
|
||||||
when {
|
when {
|
||||||
filename.isEmpty() -> activity.toast(R.string.empty_name)
|
filename.isEmpty() -> activity.toast(R.string.empty_name)
|
||||||
filename.isAValidFilename() -> {
|
filename.isAValidFilename() -> {
|
||||||
val file = File(backupFolder, "$filename.ics")
|
val file = File(backupFolder, "$filename.vcf")
|
||||||
if (file.exists() && !file.canWrite()) {
|
if (file.exists() && !file.canWrite()) {
|
||||||
activity.toast(R.string.name_taken)
|
activity.toast(R.string.name_taken)
|
||||||
return@setOnClickListener
|
return@setOnClickListener
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="@dimen/activity_margin"
|
android:layout_marginStart="@dimen/activity_margin"
|
||||||
android:layout_marginEnd="@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:endIconDrawable="@drawable/ic_info_vector"
|
||||||
app:endIconMode="custom">
|
app:endIconMode="custom">
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue