Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14605989 authored by Selim Gurun's avatar Selim Gurun Committed by Android (Google) Code Review
Browse files

Merge "Fix file path calculation for asset files."

parents b269aaf8 658dcd87
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -742,7 +742,8 @@ class BrowserFrame extends Handler {
            url = url.replaceFirst(ANDROID_ASSET, "");
            try {
                AssetManager assets = mContext.getAssets();
                return assets.open(url, AssetManager.ACCESS_STREAMING);
                Uri uri = Uri.parse(url);
                return assets.open(uri.getPath(), AssetManager.ACCESS_STREAMING);
            } catch (IOException e) {
                return null;
            }