mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-20 20:38:40 +01:00
use better default file save path at Edit, if available
This commit is contained in:
parent
093fe92596
commit
c0d446a3a4
@ -191,7 +191,8 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
||||
if (newPath.isEmpty()) {
|
||||
val filename = applicationContext.getFilenameFromContentUri(saveUri) ?: ""
|
||||
if (filename.isNotEmpty()) {
|
||||
newPath = "$internalStoragePath/$filename"
|
||||
val path = if (intent.extras?.containsKey(REAL_FILE_PATH) == true) intent.getStringExtra(REAL_FILE_PATH).getParentPath() else internalStoragePath
|
||||
newPath = "$path/$filename"
|
||||
shouldAppendFilename = false
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user