mirror of https://github.com/M66B/FairEmail.git
Clear cache web view
This commit is contained in:
parent
84b3336afb
commit
f6b7332073
|
@ -4574,6 +4574,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
properties.setHeight(message.id, null);
|
properties.setHeight(message.id, null);
|
||||||
properties.setPosition(message.id, null, null);
|
properties.setPosition(message.id, null, null);
|
||||||
|
|
||||||
|
if (wvBody instanceof WebViewEx)
|
||||||
|
((WebViewEx) wvBody).clearCache();
|
||||||
|
|
||||||
if (itemId == R.string.title_fit_width && wvBody instanceof WebView)
|
if (itemId == R.string.title_fit_width && wvBody instanceof WebView)
|
||||||
((WebView) wvBody).getSettings().setLoadWithOverviewMode(enabled);
|
((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) {
|
void setOnPageLoaded(Runnable runnable) {
|
||||||
Log.i("Set on page finished");
|
Log.i("Set on page finished");
|
||||||
onPageLoaded = runnable;
|
onPageLoaded = runnable;
|
||||||
|
|
Loading…
Reference in New Issue