mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
fix path fetching from content uri at editing
This commit is contained in:
parent
c0c7752f79
commit
093fe92596
1 changed files with 5 additions and 2 deletions
|
@ -189,8 +189,11 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
|||
var newPath = applicationContext.getRealPathFromURI(saveUri) ?: ""
|
||||
var shouldAppendFilename = true
|
||||
if (newPath.isEmpty()) {
|
||||
newPath = applicationContext.getFilenameFromContentUri(saveUri) ?: ""
|
||||
shouldAppendFilename = false
|
||||
val filename = applicationContext.getFilenameFromContentUri(saveUri) ?: ""
|
||||
if (filename.isNotEmpty()) {
|
||||
newPath = "$internalStoragePath/$filename"
|
||||
shouldAppendFilename = false
|
||||
}
|
||||
}
|
||||
|
||||
if (newPath.isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue