Closed duongpt582 closed 1 month ago
Error by Webview: I was able to solve it by removing all references to pauseTimers()
class DocWebView
fun onDestroy() {
try {
mDocView.clearHistory();
mDocView.clearCache(true)
mDocView.loadUrl("about:blank")
mDocView.freeMemory()
// mDocView.pauseTimers()
mDocView.destroy() // Note that mWebView.destroy() and mWebView = null do the exact same thing
} catch (e: Exception) {
e.printStackTrace()
}
}
When document files such as word, ppt, excel cannot be read, my intersitial ad freezes and cannot be turned off or I cannot create new ads (ad error code is 0). I am using jetpack compose this my code to open your lib: