Commit 2320f83c authored by fallenstardust's avatar fallenstardust

微调系统语言判断方式

parent 0926ca5a
...@@ -274,12 +274,12 @@ public class ResCheckTask extends AsyncTask<Void, Integer, Integer> { ...@@ -274,12 +274,12 @@ public class ResCheckTask extends AsyncTask<Void, Integer, Integer> {
IOUtils.copyFilesFromAssets(mContext, getDatapath(Constants.CORE_PICS_ZIP), IOUtils.copyFilesFromAssets(mContext, getDatapath(Constants.CORE_PICS_ZIP),
resPath, needsUpdate); resPath, needsUpdate);
} }
String language = mContext.getResources().getConfiguration().locale.getDisplayLanguage(); String language = mContext.getResources().getConfiguration().locale.getLanguage();
Log.i(BuildConfig.VERSION_NAME,language); Log.i(BuildConfig.VERSION_NAME,language);
if(!language.isEmpty()){ if(!language.isEmpty()){
if(language.equals("中文")) { if(language.equals("zh")) {
copyCnData(needsUpdate); copyCnData(needsUpdate);
}else if (language.equals("Korean")){ }else if (language.equals("ko")){
copyKorData(needsUpdate); copyKorData(needsUpdate);
} else { } else {
copyEnData(needsUpdate); copyEnData(needsUpdate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment