do not check save file existence at scoped storage

This commit is contained in:
tibbi 2020-03-17 19:00:55 +01:00
parent 1dc8299438
commit a76870387c
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class SaveImageDialog(val activity: SimpleActivity, val defaultPath: String, val
return@setOnClickListener
}
if (File(newPath).exists()) {
if (!hidePath && File(newPath).exists()) {
val title = String.format(activity.getString(R.string.file_already_exists_overwrite), newPath.getFilenameFromPath())
ConfirmationDialog(activity, title) {
callback(newPath, filename, extension)