修复修改投票中英文导致的界面语言混乱问题

This commit is contained in:
zlzw 2023-06-02 11:17:08 +08:00
parent a7a9a28c09
commit e04d277560
2 changed files with 6 additions and 1 deletions

View File

@ -128,7 +128,7 @@ public class LiveRoomVoteModel extends BaseModel {
}
public String getResult() {
return WordUtil.isZh() ? resultZh : resultEn;
return WordUtil.isNewZh() ? resultZh : resultEn;
}
public String getResultZh() {

View File

@ -27,6 +27,11 @@ public class WordUtil {
}
public static boolean isZh() {
Locale locale = sResources.getConfiguration().locale;
String language = locale.getLanguage();
return language.endsWith("zh");
}
public static boolean isNewZh(){
return IMLoginManager.get(CommonAppContext.sInstance).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE;
}