0

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?

Ray
  • 1
  • 1

1 Answers1

0

This problem seems to be a Chromium bug. There is no solution unless restart the APP.

https://bugs.chromium.org/p/chromium/issues/detail?id=709627

Ray
  • 1
  • 1