More crash fixes

This commit is contained in:
arkon
2020-12-13 17:18:28 -05:00
parent e8627800fe
commit 4880741b8b
4 changed files with 5 additions and 3 deletions
@@ -31,6 +31,7 @@ open class BaseWebViewActivity : BaseActivity<WebviewActivityBinding>() {
if (!WebViewUtil.supportsWebView(this)) {
toast(R.string.information_webview_required, Toast.LENGTH_LONG)
finish()
return
}
try {
@@ -40,6 +41,7 @@ open class BaseWebViewActivity : BaseActivity<WebviewActivityBinding>() {
// Potentially throws errors like "Error inflating class android.webkit.WebView"
toast(R.string.information_webview_required, Toast.LENGTH_LONG)
finish()
return
}
title = intent.extras?.getString(TITLE_KEY)