Andoid: Fixed a bug in stripFileProtocol function

This commit is contained in:
pwlin 2017-02-03 09:55:13 +01:00
parent 21e8e0bca0
commit c16d332a14

View File

@ -168,6 +168,8 @@ public class FileOpener2 extends CordovaPlugin {
private String stripFileProtocol(String uriString) { private String stripFileProtocol(String uriString) {
if (uriString.startsWith("file://")) { if (uriString.startsWith("file://")) {
uriString = uriString.substring(7); uriString = uriString.substring(7);
} else if (uriString.startsWith("content://")) {
uriString = uriString.substring(10);
} }
return uriString; return uriString;
} }