mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 11:49:19 +01:00
Avoid rare crash in WebViewActivity
This commit is contained in:
parent
024f9a8c76
commit
27cec697bf
@ -139,8 +139,10 @@ class WebViewActivity : BaseViewBindingActivity<WebviewActivityBinding>() {
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
binding.webview?.destroy()
|
||||
super.onDestroy()
|
||||
|
||||
// Binding sometimes isn't actually instantiated yet somehow
|
||||
binding?.webview?.destroy()
|
||||
}
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||
|
Loading…
Reference in New Issue
Block a user