mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-24 18:36:21 +03:00
store cache for WidgetWebView between loads
This commit is contained in:
parent
3b2f09e80d
commit
4a11802b65
1 changed files with 0 additions and 6 deletions
|
@ -36,10 +36,6 @@ fun WebView.setupForWidget(webViewEventListener: WebViewEventListener) {
|
|||
// clear caches
|
||||
clearHistory()
|
||||
clearFormData()
|
||||
clearCache(true)
|
||||
|
||||
// does not cache the data
|
||||
settings.cacheMode = WebSettings.LOAD_NO_CACHE
|
||||
|
||||
// Enable Javascript
|
||||
settings.javaScriptEnabled = true
|
||||
|
@ -78,8 +74,6 @@ fun WebView.clearAfterWidget() {
|
|||
(parent as? ViewGroup)?.removeAllViews()
|
||||
webChromeClient = null
|
||||
clearHistory()
|
||||
// NOTE: clears RAM cache, if you pass true, it will also clear the disk cache.
|
||||
clearCache(true)
|
||||
// Loading a blank page is optional, but will ensure that the WebView isn't doing anything when you destroy it.
|
||||
loadUrl("about:blank")
|
||||
removeAllViews()
|
||||
|
|
Loading…
Reference in a new issue