mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
Explicitly destroy webview on activity destroy
This commit is contained in:
parent
f0a1dcd120
commit
33e5fea96c
1 changed files with 5 additions and 0 deletions
|
@ -122,6 +122,11 @@ class WebViewActivity : BaseActivity<WebviewActivityBinding>() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onDestroy() {
|
||||||
|
binding.webview?.destroy()
|
||||||
|
super.onDestroy()
|
||||||
|
}
|
||||||
|
|
||||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||||
menuInflater.inflate(R.menu.webview, menu)
|
menuInflater.inflate(R.menu.webview, menu)
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in a new issue