forked from organicmaps/organicmaps
[android] Call getISO3Country() for Locale to check China.
This commit is contained in:
parent
d4cadd28fe
commit
bcce8416b6
1 changed files with 2 additions and 2 deletions
|
@ -307,8 +307,8 @@ public class MWMActivity extends NvEventQueueActivity implements LocationService
|
|||
return true;
|
||||
else
|
||||
{
|
||||
final String lang = Locale.getDefault().getLanguage();
|
||||
Log.i(TAG, "Current language ISO = " + lang);
|
||||
final String lang = Locale.getDefault().getISO3Country();
|
||||
Log.i(TAG, "Locale country ISO = " + lang);
|
||||
if (isChinaISO(lang))
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue