mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
fix a glitch at saving OTG files in the editor
This commit is contained in:
parent
06da09377d
commit
10c85cefab
1 changed files with 4 additions and 0 deletions
|
@ -765,6 +765,10 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
|||
|
||||
private fun getNewFilePath(): Pair<String, Boolean> {
|
||||
var newPath = applicationContext.getRealPathFromURI(saveUri) ?: ""
|
||||
if (newPath.startsWith("/mnt/")) {
|
||||
newPath = ""
|
||||
}
|
||||
|
||||
var shouldAppendFilename = true
|
||||
if (newPath.isEmpty()) {
|
||||
val filename = applicationContext.getFilenameFromContentUri(saveUri) ?: ""
|
||||
|
|
Loading…
Reference in a new issue