ignore REAL_FILE_PATH on OTG files
This commit is contained in:
parent
bab2b4e5a0
commit
0148465e75
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue