Merge "Settings psuedolocalization fixes." into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d5ee3bc858
@@ -18,8 +18,6 @@ LOCAL_PRIVILEGED_MODULE := true
|
|||||||
|
|
||||||
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
|
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
|
||||||
|
|
||||||
LOCAL_AAPT_FLAGS += -c zz_ZZ
|
|
||||||
|
|
||||||
include frameworks/opt/setupwizard/navigationbar/common.mk
|
include frameworks/opt/setupwizard/navigationbar/common.mk
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
include $(BUILD_PACKAGE)
|
||||||
|
@@ -47,15 +47,6 @@ public class LocalePicker extends com.android.internal.app.LocalePicker
|
|||||||
setLocaleSelectionListener(this);
|
setLocaleSelectionListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected boolean isInDeveloperMode() {
|
|
||||||
final boolean showDev = getActivity().getSharedPreferences(DevelopmentSettings.PREF_FILE,
|
|
||||||
Context.MODE_PRIVATE).getBoolean(
|
|
||||||
DevelopmentSettings.PREF_SHOW,
|
|
||||||
android.os.Build.TYPE.equals("eng"));
|
|
||||||
return showDev;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
@@ -335,16 +335,7 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
|
|||||||
// and want to pretend that the language is valid for all locales.
|
// and want to pretend that the language is valid for all locales.
|
||||||
// We need a way to support languages that aren't tied to a particular
|
// We need a way to support languages that aren't tied to a particular
|
||||||
// locale instead of hiding the locale qualifier.
|
// locale instead of hiding the locale qualifier.
|
||||||
if (language.equals("zz")) {
|
if (hasOnlyOneLanguageInstance(language,
|
||||||
String country = conf.locale.getCountry();
|
|
||||||
if (country.equals("ZZ")) {
|
|
||||||
localeName = "[Developer] Accented English (zz_ZZ)";
|
|
||||||
} else if (country.equals("ZY")) {
|
|
||||||
localeName = "[Developer] Fake Bi-Directional (zz_ZY)";
|
|
||||||
} else {
|
|
||||||
localeName = "";
|
|
||||||
}
|
|
||||||
} else if (hasOnlyOneLanguageInstance(language,
|
|
||||||
Resources.getSystem().getAssets().getLocales())) {
|
Resources.getSystem().getAssets().getLocales())) {
|
||||||
localeName = conf.locale.getDisplayLanguage(conf.locale);
|
localeName = conf.locale.getDisplayLanguage(conf.locale);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user