Skip to content

Instantly share code, notes, and snippets.

@eric-romero
Created October 28, 2021 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eric-romero/51cd4ec30e18c6acec55bd9077d956ae to your computer and use it in GitHub Desktop.
Save eric-romero/51cd4ec30e18c6acec55bd9077d956ae to your computer and use it in GitHub Desktop.
class MyWebViewClient : WebViewClient() {
@RequiresApi(Build.VERSION_CODES.O)
override fun onRenderProcessGone(view: WebView,
detail: RenderProcessGoneDetail): Boolean {
eventLogger.reportWebViewRenderProcessGone(detail.didCrash())
return super.onRenderProcessGone(view, detail)
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment