mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Merge pull request #2333 from deltachat/adb/webxdc-allow-mailto
allow to open mailto links inside webxdc documents
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user