Removed extra WebView check

This commit is contained in:
Marcel Bokhorst
2024-06-09 12:15:42 +02:00
committed by M66B
parent fb579d0d07
commit b18bf94eff
2 changed files with 4 additions and 8 deletions

View File

@@ -518,9 +518,10 @@ public class DebugHelper {
WebViewEx.isFeatureSupported(context, WebViewFeature.ALGORITHMIC_DARKENING)));
try {
PackageInfo pkg = WebViewCompat.getCurrentWebViewPackage(context);
sb.append(String.format("WebView %d/%s\r\n",
sb.append(String.format("WebView %d/%s has=%b\r\n",
pkg == null ? -1 : pkg.versionCode,
pkg == null ? null : pkg.versionName));
pkg == null ? null : pkg.versionName,
Helper.hasWebView(context)));
} catch (Throwable ex) {
sb.append(ex).append("\r\n");
}