webview-changing-colors-bug
Demonstration of calling requestFocusFromTouch() in WebView is changing colors in Android app
This is the problematic code:
it.webViewClient = object : WebViewClient() {
override fun onPageFinished(view: WebView, url: String) {
/* The problem is with this code here. Calling requestFocusFromTouch()
* seems to be propagating the focusing to the MainActivity.
* We should not use it! */
if (doCallRequestFromTouch) {
it.requestFocusFromTouch()
}
}
}