[6.2.4] fix bug of sound play helper , devices extends lenovo , npl of map init

This commit is contained in:
zhongchao
2023-12-18 12:01:23 +08:00
parent fbf4a89f37
commit 4c5b88aecf
7 changed files with 44 additions and 12 deletions

View File

@@ -313,7 +313,7 @@ public final class DeviceUtils {
}
public static Boolean isLenovoModel(){
return getModel().contains("Lenovo");
return getModel().contains("Lenovo") || getBrand().contains("Lenovo");
}
public static Boolean isEB5Model(){
@@ -336,6 +336,16 @@ public final class DeviceUtils {
return model;
}
public static String getBrand() {
String brand = Build.BRAND;
if (brand != null) {
brand = brand.trim().replaceAll("\\s*", "");
} else {
brand = "";
}
return brand;
}
/**
* Return an ordered list of ABIs supported by this device. The most preferred ABI is the first
* element in the list.