Load internal URLs inside the webview

(cherry picked from commit 5d7e7681286cd9b391f1fb793e150ae497369abf)
This commit is contained in:
Stephen Paul Weber 2024-09-08 14:29:03 -05:00 committed by Arne
parent e1f428a4c7
commit b01839f80b

View file

@ -229,6 +229,8 @@ public class WebxdcPage implements ConversationPage {
// so, to support all systems, for now, using the old one seems to be the simplest way.
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (url.startsWith(baseUrl)) return false;
if (url != null) {
Uri uri = Uri.parse(url);
switch (uri.getScheme()) {