Forcing the settings apk to be built with the zz_ZZ pseudolocale.
This will enable Settings to show the effects of the zz_ZZ pseudolocale when selected in the LocalePicker. Bug #8556677 Change-Id: I68ffc81454865dec94a3c1460019d1efce00ea49
This commit is contained in:
@@ -23,8 +23,10 @@ import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ListView;
|
||||
import android.content.Context;
|
||||
|
||||
import com.android.settings.SettingsPreferenceFragment.SettingsDialogFragment;
|
||||
import com.android.settings.DevelopmentSettings;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
@@ -45,6 +47,15 @@ public class LocalePicker extends com.android.internal.app.LocalePicker
|
||||
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
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
Reference in New Issue
Block a user