[6.2.4] fix bug of sound play helper , devices extends lenovo , npl of map init
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user