diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt index b94d38382..c5117fc97 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt @@ -765,6 +765,10 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener private fun getNewFilePath(): Pair { var newPath = applicationContext.getRealPathFromURI(saveUri) ?: "" + if (newPath.startsWith("/mnt/")) { + newPath = "" + } + var shouldAppendFilename = true if (newPath.isEmpty()) { val filename = applicationContext.getFilenameFromContentUri(saveUri) ?: ""