The history of WebView is clearing but the link I visited was still purple, not change back to the blue.
//kotlin code
val webView = web_view
webView.canGoBack()
webView.loadUrl("https://bing.com")
webView.webViewClient = object : WebViewClient() {
override fun doUpdateVisitedHistory(view: WebView, url: String, isReload: Boolean) {
webView.clearCache(true)
webView.clearHistory()
}
}
I am sure webView.cleatHistory()
is available, because I cannot back to previous page.
The history has been cleared. Why the link color that I clicked still purple?