Explicitly destroy webview on activity destroy

This commit is contained in:
arkon 2020-07-26 17:47:43 -04:00
parent f0a1dcd120
commit 33e5fea96c

View file

@ -122,6 +122,11 @@ class WebViewActivity : BaseActivity<WebviewActivityBinding>() {
}
}
override fun onDestroy() {
binding.webview?.destroy()
super.onDestroy()
}
override fun onCreateOptionsMenu(menu: Menu): Boolean {
menuInflater.inflate(R.menu.webview, menu)
return true