Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/mWater/fix-issue-525'
Browse files Browse the repository at this point in the history
* origin/mWater/fix-issue-525:
  Revert indent
  Indent using spaces
  Correct indent
  Fix apache#525
  • Loading branch information
pinionpi committed Apr 10, 2023
2 parents 4cd85f3 + 533583f commit b7a7cfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/android/ContentFilesystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public ContentFilesystem(Context context, CordovaResourceApi resourceApi, Cordov

@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;
}
Expand Down

0 comments on commit b7a7cfc

Please sign in to comment.