do not check file existence in scoped storage

This commit is contained in:
tibbi 2020-03-17 19:00:06 +01:00
parent 9c622a30bd
commit f89846e610
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class ExportContactsDialog(val activity: SimpleActivity, val path: String, val h
filename.isEmpty() -> activity.toast(R.string.empty_name) filename.isEmpty() -> activity.toast(R.string.empty_name)
filename.isAValidFilename() -> { filename.isAValidFilename() -> {
val file = File(realPath, "$filename.vcf") val file = File(realPath, "$filename.vcf")
if (file.exists()) { if (!hidePath && file.exists()) {
activity.toast(R.string.name_taken) activity.toast(R.string.name_taken)
return@setOnClickListener return@setOnClickListener
} }