ignore REAL_FILE_PATH on OTG files
This commit is contained in:
parent
bab2b4e5a0
commit
0148465e75
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
||||||
if (intent.extras?.containsKey(REAL_FILE_PATH) == true) {
|
if (intent.extras?.containsKey(REAL_FILE_PATH) == true) {
|
||||||
val realPath = intent.extras.getString(REAL_FILE_PATH)
|
val realPath = intent.extras.getString(REAL_FILE_PATH)
|
||||||
uri = when {
|
uri = when {
|
||||||
realPath.startsWith(OTG_PATH) -> Uri.parse(realPath)
|
realPath.startsWith(OTG_PATH) -> uri
|
||||||
realPath.startsWith("file:/") -> Uri.parse(realPath)
|
realPath.startsWith("file:/") -> Uri.parse(realPath)
|
||||||
else -> Uri.fromFile(File(realPath))
|
else -> Uri.fromFile(File(realPath))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue