We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 778ee9f commit 4c59748Copy full SHA for 4c59748
library/src/main/java/com/hjq/device/compat/DeviceOs.java
@@ -969,7 +969,7 @@ private static String getOneUiVersionNameByVersionCode(int oneUiVersionCode) {
969
}
970
971
/**
972
- * 从文本提取字符串中的版本号(只保留数字和点号)
+ * 从文本提取版本号(只保留数字和点号)
973
*/
974
@NonNull
975
private static String extractVersionNameByText(@Nullable String text) {
@@ -999,7 +999,7 @@ private static String extractVersionNameByText(@Nullable String text) {
999
if (matcher.find() && matcher.groupCount() > 0) {
1000
String result = matcher.group(1);
1001
if (result != null) {
1002
- return result;
+ return result + ".0";
1003
1004
1005
return "";
0 commit comments