From f5f592be912b4c286d6d9cdcf801354205f439a7 Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 12 Feb 2021 12:39:15 -0500 Subject: [PATCH] Require minimum WebView v88, try to catch fatal errors too --- .../main/java/eu/kanade/tachiyomi/util/system/WebViewUtil.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/system/WebViewUtil.kt b/app/src/main/java/eu/kanade/tachiyomi/util/system/WebViewUtil.kt index 584bffa515..9c5cc349e0 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/system/WebViewUtil.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/system/WebViewUtil.kt @@ -11,14 +11,14 @@ import timber.log.Timber object WebViewUtil { const val REQUESTED_WITH = "com.android.browser" - const val MINIMUM_WEBVIEW_VERSION = 87 + const val MINIMUM_WEBVIEW_VERSION = 88 fun supportsWebView(context: Context): Boolean { try { // May throw android.webkit.WebViewFactory$MissingWebViewPackageException if WebView // is not installed CookieManager.getInstance() - } catch (e: Exception) { + } catch (e: Throwable) { Timber.e(e) return false }