Fixed WebView hash reset

pull/217/head
M66B 7 months ago
parent c8541fce76
commit 990fec94f9

@ -247,7 +247,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
void setImages(boolean show_images, boolean inline) { void setImages(boolean show_images, boolean inline) {
WebSettings settings = getSettings(); WebSettings settings = getSettings();
if (settings.getLoadsImagesAutomatically() != show_images) if (settings.getLoadsImagesAutomatically() != (show_images || inline))
this.hash = null; this.hash = null;
settings.setLoadsImagesAutomatically(show_images || inline); settings.setLoadsImagesAutomatically(show_images || inline);

Loading…
Cancel
Save