am e16a1bfa: Use system locale list.

* commit 'e16a1bfa9cd9a9a0430e2fe890586ae451f0faaf':
  Use system locale list.
This commit is contained in:
Daisuke Miyakawa
2011-03-18 11:23:00 -07:00
committed by Android Git Automerger

View File

@@ -88,7 +88,7 @@ public class LocalePicker extends ListFragment {
public static ArrayAdapter<LocaleInfo> constructAdapter(Context context,
int layoutId, int fieldId) {
final Resources resources = context.getResources();
final String[] locales = context.getAssets().getLocales();
final String[] locales = Resources.getSystem().getAssets().getLocales();
final String[] specialLocaleCodes = resources.getStringArray(R.array.special_locale_codes);
final String[] specialLocaleNames = resources.getStringArray(R.array.special_locale_names);
Arrays.sort(locales);