Avoid rare crash in WebViewActivity
This commit is contained in:
parent
024f9a8c76
commit
27cec697bf
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Reference in a new issue