diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index cf834651ad..65706dd0a8 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1869,7 +1869,6 @@ public class AdapterMessage extends RecyclerView.Adapter position, float textSize, boolean monospaced, - boolean show_images, boolean inline, IWebView intf) { Log.i("Init height=" + height + " size=" + size); @@ -91,10 +90,6 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC if (monospaced) settings.setStandardFontFamily("monospace"); - settings.setLoadsImagesAutomatically(show_images || inline); - settings.setBlockNetworkLoads(!show_images); - settings.setBlockNetworkImage(!show_images); - this.intf = intf; setWebViewClient(new WebViewClient() { @@ -120,6 +115,13 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC }); } + void setImages(boolean show_images, boolean inline) { + WebSettings settings = getSettings(); + settings.setLoadsImagesAutomatically(show_images || inline); + settings.setBlockNetworkLoads(!show_images); + settings.setBlockNetworkImage(!show_images); + } + @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { if (height > getMinimumHeight())