This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-file.git
The following commit(s) were added to refs/heads/master by this push:
new 0bd76c5 fix(android): FileError on a content
resolveLocalFileSystemURL (#534)
0bd76c5 is described below
commit 0bd76c5e6f00533362d61d13e13af26da8a616d8
Author: Clayton Grassick <[email protected]>
AuthorDate: Tue Jul 4 18:43:54 2023 +0100
fix(android): FileError on a content resolveLocalFileSystemURL (#534)
---
src/android/ContentFilesystem.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/android/ContentFilesystem.java
b/src/android/ContentFilesystem.java
index f4df440..d528bd3 100644
--- a/src/android/ContentFilesystem.java
+++ b/src/android/ContentFilesystem.java
@@ -45,7 +45,8 @@ public class ContentFilesystem extends Filesystem {
@Override
public Uri toNativeUri(LocalFilesystemURL inputURL) {
- String authorityAndPath =
inputURL.uri.getEncodedPath().substring(this.name.length() + 2);
+ String encodedPath = inputURL.uri.getEncodedPath();
+ String authorityAndPath =
encodedPath.substring(encodedPath.indexOf(this.name) + 1 + this.name.length() +
2);
if (authorityAndPath.length() < 2) {
return null;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]