Small fix debug info

pull/217/head
M66B 6 months ago
parent 33972b631e
commit 27c6a6cc8a

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

Loading…
Cancel
Save