Merge pull request #3086 from ByteHamster/fix-double-slash-url
Specifying base url
This commit is contained in:
commit
4797d3ae56
|
@ -307,7 +307,7 @@ public class ItemDescriptionFragment extends Fragment implements MediaplayerInfo
|
|||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(data -> {
|
||||
webvDescription.loadDataWithBaseURL(null, data, "text/html",
|
||||
webvDescription.loadDataWithBaseURL("https://127.0.0.1", data, "text/html",
|
||||
"utf-8", "about:blank");
|
||||
Log.d(TAG, "Webview loaded");
|
||||
}, error -> Log.e(TAG, Log.getStackTraceString(error)));
|
||||
|
|
|
@ -358,7 +358,7 @@ public class ItemFragment extends Fragment implements OnSwipeGesture {
|
|||
|
||||
private void onFragmentLoaded() {
|
||||
if (webviewData != null) {
|
||||
webvDescription.loadDataWithBaseURL(null, webviewData, "text/html", "utf-8", "about:blank");
|
||||
webvDescription.loadDataWithBaseURL("https://127.0.0.1", webviewData, "text/html", "utf-8", "about:blank");
|
||||
}
|
||||
updateAppearance();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue