From d425083e576306bee507ee65532e365bccb0c96e Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 4 Mar 2019 20:46:16 +0100 Subject: [PATCH] fix #1307, properly send the Editor intent from the editor --- .../com/simplemobiletools/gallery/pro/extensions/Activity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt index dbd7bda79..481391aaa 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt @@ -60,7 +60,8 @@ fun Activity.openPath(path: String, forceChooser: Boolean) { } fun Activity.openEditor(path: String, forceChooser: Boolean = false) { - openEditorIntent(path, forceChooser, BuildConfig.APPLICATION_ID) + val newPath = path.removePrefix("file://") + openEditorIntent(newPath, forceChooser, BuildConfig.APPLICATION_ID) } fun Activity.launchCamera() {