fix: 修复检查设备 webview 状态时 webview 列表为空时的闪退

This commit is contained in:
chenjuntao
2023-01-10 15:51:12 +08:00
parent fb719577cf
commit ad683b66d7

View File

@ -1017,7 +1017,7 @@ public class PackageUtils {
public static boolean checkWebViewIsAvailable(Context context) {
List<String> webViewAbiList = HaloApp.getInstance().getWebViewAbiList();
if (!webViewAbiList.isEmpty()) {
if (webViewAbiList != null && !webViewAbiList.isEmpty()) {
if (webViewAbiList.size() == 2 && webViewAbiList.contains("x86") && webViewAbiList.contains("x86_64")) {
return true;
}