mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-17 03:51:03 +01:00
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.isAValidFilename() -> {
|
||||
val file = File(realPath, "$filename.vcf")
|
||||
if (file.exists()) {
|
||||
if (!hidePath && file.exists()) {
|
||||
activity.toast(R.string.name_taken)
|
||||
return@setOnClickListener
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user