fix #1307, properly send the Editor intent from the editor

This commit is contained in:
tibbi 2019-03-04 20:46:16 +01:00
parent ae031af161
commit d425083e57

View file

@ -60,7 +60,8 @@ fun Activity.openPath(path: String, forceChooser: Boolean) {
} }
fun Activity.openEditor(path: String, forceChooser: Boolean = false) { 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() { fun Activity.launchCamera() {