mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
ignore REAL_FILE_PATH on OTG files
This commit is contained in:
@@ -66,7 +66,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
||||
if (intent.extras?.containsKey(REAL_FILE_PATH) == true) {
|
||||
val realPath = intent.extras.getString(REAL_FILE_PATH)
|
||||
uri = when {
|
||||
realPath.startsWith(OTG_PATH) -> Uri.parse(realPath)
|
||||
realPath.startsWith(OTG_PATH) -> uri
|
||||
realPath.startsWith("file:/") -> Uri.parse(realPath)
|
||||
else -> Uri.fromFile(File(realPath))
|
||||
}
|
||||
|
Reference in New Issue
Block a user