mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 10:59:16 +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() {
|
override fun onDestroy() {
|
||||||
binding.webview?.destroy()
|
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
|
|
||||||
|
// Binding sometimes isn't actually instantiated yet somehow
|
||||||
|
binding?.webview?.destroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||||
|
Loading…
Reference in New Issue
Block a user