mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-31 11:44:49 +01:00
fix a glitch at saving OTG files in the editor
This commit is contained in:
parent
06da09377d
commit
10c85cefab
@ -765,6 +765,10 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
|||||||
|
|
||||||
private fun getNewFilePath(): Pair<String, Boolean> {
|
private fun getNewFilePath(): Pair<String, Boolean> {
|
||||||
var newPath = applicationContext.getRealPathFromURI(saveUri) ?: ""
|
var newPath = applicationContext.getRealPathFromURI(saveUri) ?: ""
|
||||||
|
if (newPath.startsWith("/mnt/")) {
|
||||||
|
newPath = ""
|
||||||
|
}
|
||||||
|
|
||||||
var shouldAppendFilename = true
|
var shouldAppendFilename = true
|
||||||
if (newPath.isEmpty()) {
|
if (newPath.isEmpty()) {
|
||||||
val filename = applicationContext.getFilenameFromContentUri(saveUri) ?: ""
|
val filename = applicationContext.getFilenameFromContentUri(saveUri) ?: ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user