修复修改投票中英文导致的界面语言混乱问题
This commit is contained in:
parent
a7a9a28c09
commit
e04d277560
@ -128,7 +128,7 @@ public class LiveRoomVoteModel extends BaseModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getResult() {
|
public String getResult() {
|
||||||
return WordUtil.isZh() ? resultZh : resultEn;
|
return WordUtil.isNewZh() ? resultZh : resultEn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getResultZh() {
|
public String getResultZh() {
|
||||||
|
@ -27,6 +27,11 @@ public class WordUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isZh() {
|
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;
|
return IMLoginManager.get(CommonAppContext.sInstance).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user