Clear cache web view

pull/213/head
M66B 1 year ago
parent 84b3336afb
commit f6b7332073

@ -4574,6 +4574,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
properties.setHeight(message.id, null);
properties.setPosition(message.id, null, null);
if (wvBody instanceof WebViewEx)
((WebViewEx) wvBody).clearCache();
if (itemId == R.string.title_fit_width && wvBody instanceof WebView)
((WebView) wvBody).getSettings().setLoadWithOverviewMode(enabled);

@ -198,6 +198,10 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
});
}
void clearCache() {
this.hash = null;
}
void setOnPageLoaded(Runnable runnable) {
Log.i("Set on page finished");
onPageLoaded = runnable;

Loading…
Cancel
Save