MM内地版本
This commit is contained in:
@@ -223,18 +223,18 @@ public class IMApplication extends MultiDexApplication {
|
||||
private void initLang() {
|
||||
if (DataUtils.get(getAppContext(), "locale", -1) == -1) {//如果一次都没有设置,则需要默认设置一次,以便Activity中生效
|
||||
// PreferencesToolkits.getNew(getAppContext(),"locale",0);
|
||||
if (Locale.getDefault().getCountry().equals(Locale.CHINA.getCountry())) {
|
||||
DataUtils.set(getAppContext(), "locale", 1);
|
||||
if (Locale.getDefault().getCountry().equals(Locale.TAIWAN.getCountry())) {
|
||||
DataUtils.set(getAppContext(), "locale", 0);
|
||||
} else if (Locale.getDefault().equals(Locale.ENGLISH)) {
|
||||
DataUtils.set(getAppContext(), "locale", 2);
|
||||
} else if (Locale.getDefault().equals(Locale.JAPANESE)) {
|
||||
DataUtils.set(getAppContext(), "locale", 3);
|
||||
} else {
|
||||
DataUtils.set(getAppContext(), "locale", 0);
|
||||
DataUtils.set(getAppContext(), "locale", 1);
|
||||
}
|
||||
|
||||
}
|
||||
int loc = DataUtils.get(getAppContext(), "locale", 3);
|
||||
int loc = DataUtils.get(getAppContext(), "locale", -1);
|
||||
ChatDataUtils.set(getAppContext(), "locale", loc);
|
||||
|
||||
LogUtils.i("下标:" + loc);
|
||||
|
||||
Reference in New Issue
Block a user