allow to open mailto links inside webxdc documents

This commit is contained in:
adbenitez
2022-07-06 06:31:39 -04:00
parent 74b6da430b
commit bdefbe0055
@@ -119,6 +119,10 @@ public class WebxdcActivity extends WebViewActivity implements DcEventCenter.DcE
// internal page, continue loading in the WebView
return false;
}
if (url.startsWith("mailto:")) {
return super.openOnlineUrl(url);
}
Toast.makeText(this, "Please embed needed resources.", Toast.LENGTH_LONG).show();
return true; // returning `true` causes the WebView to abort loading
}