forked from mirror/monocles_chat_clean
Load internal URLs inside the webview
(cherry picked from commit 5d7e7681286cd9b391f1fb793e150ae497369abf)
This commit is contained in:
parent
e1f428a4c7
commit
b01839f80b
1 changed files with 2 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue