1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

Ensured that SystemStats::getUserLanguage and SystemStats::getUserCountry returns an ISO code on Android

This commit is contained in:
hogliux 2017-03-30 11:32:06 +01:00
parent 1116a6a1f1
commit 4c7a92ecfa

View file

@ -1081,8 +1081,8 @@ public class JuceAppActivity extends Activity
{
java.util.Locale locale = java.util.Locale.getDefault();
return isRegion ? locale.getDisplayCountry (java.util.Locale.US)
: locale.getDisplayLanguage (java.util.Locale.US);
return isRegion ? locale.getCountry()
: locale.getLanguage();
}
private static final String getFileLocation (String type)