add languages to dict names in set-default spinner

This commit is contained in:
Andy2 2010-10-26 18:35:54 -07:00
parent c8a6f453c9
commit 84e6d94919

View file

@ -33,7 +33,12 @@ public class DictListPreference extends ListPreference {
super( context, attrs );
String[] dicts = GameUtils.dictList( context );
setEntries( dicts );
String[] dictEntries = new String[dicts.length];
for ( int ii = 0; ii < dicts.length; ++ii ) {
dictEntries[ii] =
DictLangCache.annotatedDictName( context, dicts[ii] );
}
setEntries( dictEntries );
setEntryValues( dicts );
}
}