From 0148465e7530d043427f50be6848734c986d35c2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 24 Apr 2018 17:54:11 +0200 Subject: [PATCH] ignore REAL_FILE_PATH on OTG files --- .../com/simplemobiletools/gallery/activities/EditActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt index 96f3e20ae..e54ba3251 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt @@ -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)) }