Merge pull request #2333 from deltachat/adb/webxdc-allow-mailto

allow to open mailto links inside webxdc documents
This commit is contained in:
Asiel Díaz Benítez
2022-07-06 07:08:27 -04:00
committed by GitHub
@@ -120,6 +120,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
}