Skip to content

Commit

Permalink
Fix #1932 again (referred from #1889)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Dec 9, 2021
1 parent 4335f47 commit 65a3522
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ open class StartupActivity : CustomTitlebarActivityBase() {
val info = WebViewCompat.getCurrentWebViewPackage(applicationContext)
Log.i(TAG, "checkWebView: WebView version ${info?.packageName} ${info?.versionName}")

if(info?.packageName == "com.huawei.version") return true // We won't check huawei version number as it does not follow Chromium version numbering.
if(info?.packageName == "com.huawei.webview") return true // We won't check huawei version number as it does not follow Chromium version numbering.

val versionNum = info?.versionName?.split(".")?.first()?.split(" ")?.first()?.toIntOrNull() ?: return true // null -> can't check
val minimumVersion = 83 // tested with Android Emulator API 30 and looks to function OK
Expand Down

0 comments on commit 65a3522

Please sign in to comment.