mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Require minimum WebView v88, try to catch fatal errors too
This commit is contained in:
		| @@ -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 | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user