mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-24 05:38:01 +03: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 {
|
||||
menuInflater.inflate(R.menu.webview, menu)
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue