do not check file existence in scoped storage
This commit is contained in:
parent
9c622a30bd
commit
f89846e610
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue