Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:初次进入app时,系统语言环境为en_US会导致应用闪退 #1097

Merged
merged 44 commits into from
Jan 18, 2025
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
796b260
adj: remove mediaeditor some old func
lingqiqi5211 Jan 1, 2025
851105f
[skp]fix: isSwapWiFiAndMobileNetwork (hy1)
lingqiqi5211 Jan 1, 2025
f8515c9
优化:重构相册编辑部分 hook
lingqiqi5211 Jan 9, 2025
67b7e71
sevtinge commits
Sevtinge Jan 9, 2025
d7ab6e5
test commit
lingqiqi5211 Jan 9, 2025
cdfef14
fix: 修复 手机管家-全局侧边栏-隐藏侧边栏 功能失效的问题
lingqiqi5211 Jan 10, 2025
891890c
opt: Tools
lingqiqi5211 Jan 10, 2025
a5b866d
adj: version code = github commit code
lingqiqi5211 Jan 11, 2025
845dc94
deps: update agp to 8.8.0
lingqiqi5211 Jan 11, 2025
5366634
fix: 系统界面-状态栏-图标-闹钟-仅在闹钟响铃前显示闹钟图标 设置失效的问题(Miui14-HyperOS2)
lingqiqi5211 Jan 11, 2025
c3b8255
adj: 对 HyperOS2 隐藏通知省略点数最大数量的功能
lingqiqi5211 Jan 11, 2025
5da5307
fix: 系统界面-通知与控制中心-媒体通知卡片-动作按钮大小不生效的问题(HyperOS1-HyperOS2)
lingqiqi5211 Jan 11, 2025
f407080
adj: 移除解锁 Xiaomi HyperMind 功能 && 对 Pad 取消横屏隐藏通知栏天气功能
lingqiqi5211 Jan 11, 2025
f9acab0
#尝试优化普通磁贴圆角
YunZiA Jan 11, 2025
a2ae509
fix:修复磁贴自动收起在OS2上失效
YunZiA Jan 11, 2025
c9da8d7
adj: remove mediaeditor some old func
lingqiqi5211 Jan 1, 2025
a001239
优化:重构相册编辑部分 hook
lingqiqi5211 Jan 9, 2025
0c4884d
fix: 修复 手机管家-全局侧边栏-隐藏侧边栏 功能失效的问题
lingqiqi5211 Jan 10, 2025
8384fd6
opt: Tools
lingqiqi5211 Jan 10, 2025
2e045d7
fix: 系统界面-状态栏-图标-闹钟-仅在闹钟响铃前显示闹钟图标 设置失效的问题(Miui14-HyperOS2)
lingqiqi5211 Jan 11, 2025
dc4fa36
opt: 普通磁贴圆角
YunZiA Jan 11, 2025
8daede5
fix: 磁贴自动收起在 OS2 上失效的问题
YunZiA Jan 11, 2025
bafd7ef
opt: 通知中心在横屏状态下不隐藏天气组件 (#2)
xzakota Jan 12, 2025
f291038
opt: codes
lingqiqi5211 Jan 12, 2025
1d1ab54
opt: MobileTypeSingle2Hook (显示逻辑为默认时)的相关逻辑
lingqiqi5211 Jan 13, 2025
345b845
adj: 移除解锁超大音量功能
lingqiqi5211 Jan 13, 2025
f2269d8
feat: 移植 按压展开二级音量条 & 隐藏静音和勿扰按钮 | opt: 调整功能布局
lingqiqi5211 Jan 13, 2025
a8be939
opt: add isLargeUI()
lingqiqi5211 Jan 13, 2025
f9fd8ec
opt: 横屏或大屏显示天气适配更多 OS1 设备 (#3)
xzakota Jan 13, 2025
ba46d7b
app:update version to 2.5.156
lingqiqi5211 Jan 13, 2025
696ce6f
fix:初次进入app时,系统语言环境为en_US会导致应用闪退
YunZiA Jan 18, 2025
5dc8d2d
--初次进入app时,系统语言环境为en_US会导致应用闪退
YunZiA Jan 18, 2025
f5ded23
#尝试优化普通磁贴圆角
YunZiA Jan 11, 2025
921b439
fix:修复磁贴自动收起在OS2上失效
YunZiA Jan 11, 2025
3624dc7
adj: remove mediaeditor some old func
lingqiqi5211 Jan 1, 2025
6825683
优化:重构相册编辑部分 hook
lingqiqi5211 Jan 9, 2025
2b8c045
fix: 修复 手机管家-全局侧边栏-隐藏侧边栏 功能失效的问题
lingqiqi5211 Jan 10, 2025
494b86b
opt: Tools
lingqiqi5211 Jan 10, 2025
95dd168
fix: 系统界面-状态栏-图标-闹钟-仅在闹钟响铃前显示闹钟图标 设置失效的问题(Miui14-HyperOS2)
lingqiqi5211 Jan 11, 2025
5c56470
opt: 普通磁贴圆角
YunZiA Jan 11, 2025
f29c856
fix: 磁贴自动收起在 OS2 上失效的问题
YunZiA Jan 11, 2025
9eeea27
fix:初次进入app时,系统语言环境为en_US会导致应用闪退
YunZiA Jan 18, 2025
f02dbf1
Merge remote-tracking branch 'yunzia/pull' into pull
YunZiA Jan 18, 2025
6e14640
--初次进入app时,系统语言环境为en_US会导致应用闪退
YunZiA Jan 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,20 @@ public static String newLanguage(String language, String country) {
}

public static int resultIndex(String[] languages, String value) {
int index = -1;
for (String l : languages) {
index = index + 1;
if (l.equals(value)) {
return index;

String targetLanguage = value.split("_")[0];

for (int i = 0; i < languages.length; i++) {
String currentLang = languages[i];
if (currentLang == null) continue;

if (currentLang.equals(value)) {
return i;
}

String currentLanguage = currentLang.split("_")[0];
if (targetLanguage.equals(currentLanguage)) {
return i; // Language匹配成功
}
}
return -1;
Expand Down
Loading