mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-06-05 21:59:17 +02:00
make sure there is no extra slash at the save path
This commit is contained in:
@ -55,7 +55,7 @@ class SaveImageDialog(val activity: SimpleActivity, val defaultExtension: String
|
|||||||
else -> JPG
|
else -> JPG
|
||||||
}
|
}
|
||||||
|
|
||||||
val newPath = "$folder/$filename.$extension"
|
val newPath = "${folder.trimEnd('/')}/$filename.$extension"
|
||||||
if (!newPath.getFilenameFromPath().isAValidFilename()) {
|
if (!newPath.getFilenameFromPath().isAValidFilename()) {
|
||||||
activity.toast(R.string.filename_invalid_characters)
|
activity.toast(R.string.filename_invalid_characters)
|
||||||
return@setOnClickListener
|
return@setOnClickListener
|
||||||
|
Reference in New Issue
Block a user