mirror of https://github.com/libsdl-org/SDL.git
use SDL style - else on same line as closing brace
This commit is contained in:
parent
8e22194217
commit
b8e055ce64
|
|
@ -2129,8 +2129,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
|
||||||
if (i != 0) result += ",";
|
if (i != 0) result += ",";
|
||||||
result += formatLocale(locales.get(i));
|
result += formatLocale(locales.get(i));
|
||||||
}
|
}
|
||||||
}
|
} else if (mCurrentLocale != null) {
|
||||||
else if (mCurrentLocale != null) {
|
|
||||||
result = formatLocale(mCurrentLocale);
|
result = formatLocale(mCurrentLocale);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
@ -2142,19 +2141,16 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
|
||||||
if (locale.getLanguage() == "in") {
|
if (locale.getLanguage() == "in") {
|
||||||
// Indonesian is "id" according to ISO 639.2, but on Android is "in" because of Java backwards compatibility
|
// Indonesian is "id" according to ISO 639.2, but on Android is "in" because of Java backwards compatibility
|
||||||
lang = "id";
|
lang = "id";
|
||||||
}
|
} else if (locale.getLanguage() == "") {
|
||||||
else if (locale.getLanguage() == "") {
|
|
||||||
// Make sure language is never empty
|
// Make sure language is never empty
|
||||||
lang = "und";
|
lang = "und";
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
lang = locale.getLanguage();
|
lang = locale.getLanguage();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (locale.getCountry() == "") {
|
if (locale.getCountry() == "") {
|
||||||
result = lang;
|
result = lang;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
result = lang + "_" + locale.getCountry();
|
result = lang + "_" + locale.getCountry();
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue