mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 12:02:49 +08:00
Andoid: Fixed a bug in stripFileProtocol function
This commit is contained in:
parent
21e8e0bca0
commit
c16d332a14
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user