From c16d332a143832fc73a5047691a60de011a701ca Mon Sep 17 00:00:00 2001 From: pwlin Date: Fri, 3 Feb 2017 09:55:13 +0100 Subject: [PATCH] Andoid: Fixed a bug in stripFileProtocol function --- .../github/pwlin/cordova/plugins/fileopener2/FileOpener2.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java b/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java index b330b4f..66d3f09 100644 --- a/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java +++ b/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java @@ -168,6 +168,8 @@ public class FileOpener2 extends CordovaPlugin { private String stripFileProtocol(String uriString) { if (uriString.startsWith("file://")) { uriString = uriString.substring(7); + } else if (uriString.startsWith("content://")) { + uriString = uriString.substring(10); } return uriString; }