diff --git a/app/src/main/java/eu/faircode/email/WebViewEx.java b/app/src/main/java/eu/faircode/email/WebViewEx.java index a13f88f5d3..f8e7b64f2f 100644 --- a/app/src/main/java/eu/faircode/email/WebViewEx.java +++ b/app/src/main/java/eu/faircode/email/WebViewEx.java @@ -106,7 +106,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC public void onPageCommitVisible(WebView view, String url) { Log.i("Commit url=" + url); if (onPageFinished != null) - onPageFinished.run(); + ApplicationEx.getMainHandler().post(onPageFinished); } public boolean shouldOverrideUrlLoading(WebView view, String url) {