File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
android-project/app/src/main/java/org/libsdl/app Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -2129,8 +2129,7 @@ public static String getPreferredLocales() {
2129
2129
if (i != 0 ) result += "," ;
2130
2130
result += formatLocale (locales .get (i ));
2131
2131
}
2132
- }
2133
- else if (mCurrentLocale != null ) {
2132
+ } else if (mCurrentLocale != null ) {
2134
2133
result = formatLocale (mCurrentLocale );
2135
2134
}
2136
2135
return result ;
@@ -2142,19 +2141,16 @@ public static String formatLocale(Locale locale) {
2142
2141
if (locale .getLanguage () == "in" ) {
2143
2142
// Indonesian is "id" according to ISO 639.2, but on Android is "in" because of Java backwards compatibility
2144
2143
lang = "id" ;
2145
- }
2146
- else if (locale .getLanguage () == "" ) {
2144
+ } else if (locale .getLanguage () == "" ) {
2147
2145
// Make sure language is never empty
2148
2146
lang = "und" ;
2149
- }
2150
- else {
2147
+ } else {
2151
2148
lang = locale .getLanguage ();
2152
2149
}
2153
2150
2154
2151
if (locale .getCountry () == "" ) {
2155
2152
result = lang ;
2156
- }
2157
- else {
2153
+ } else {
2158
2154
result = lang + "_" + locale .getCountry ();
2159
2155
}
2160
2156
return result ;
You can’t perform that action at this time.
0 commit comments