Skip to content

Commit 8f2860a

Browse files
committed
修复获取厂商系统 ZUI 版本错误的问题
修正厂商系统 ZUI 相关代码注释和文档描述错误的问题
1 parent 18aaf6f commit 8f2860a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ DeviceOs.isSmartisanOs();
129129
// 判断当前设备的厂商系统是否为 EUI(乐视的系统)
130130
DeviceOs.isEui();
131131

132-
// 判断当前设备的厂商系统是否为 ZUI(摩托罗拉的系统
132+
// 判断当前设备的厂商系统是否为 ZUI(联想的系统
133133
DeviceOs.isZui();
134134

135135
// 判断当前设备的厂商系统是否为 nubiaUI(努比亚的老系统)

library/src/main/java/com/hjq/device/compat/DeviceOs.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,13 @@ public final class DeviceOs {
282282
"ro.config.leui_ringtone_slot2",
283283
"ro.leui_oem_unlock_enable" };
284284

285-
/* ---------------------------------------- 下面是摩托罗拉的系统 ---------------------------------------- */
285+
/* ---------------------------------------- 下面是联想的系统 ---------------------------------------- */
286286

287287
static final String OS_NAME_ZUI_OS = "ZUI";
288288
/**
289289
* [ro.com.zui.version]: [3.5]
290290
*/
291-
static final String OS_VERSION_NAME_ZUI_OS = "ro.letv.release.version";
291+
static final String OS_VERSION_NAME_ZUI_OS = "ro.com.zui.version";
292292
/**
293293
* [ro.zui.version.status]: [ST]
294294
* [ro.zui.hardware.displayid]: [H201]
@@ -744,7 +744,7 @@ public static boolean isEui() {
744744
}
745745

746746
/**
747-
* 判断当前设备的厂商系统是否为 ZUI(摩托罗拉的系统
747+
* 判断当前设备的厂商系统是否为 ZUI(联想的系统
748748
*/
749749
public static boolean isZui() {
750750
return TextUtils.equals(sCurrentOsName, OS_NAME_ZUI_OS);

0 commit comments

Comments
 (0)