set default language and wordlist after downloading for non-english

device
This commit is contained in:
Eric House 2015-03-30 08:18:42 -07:00
parent a4e24ec566
commit 7cbec919ef

View file

@ -1206,10 +1206,18 @@ public class GamesListDelegate extends ListDelegateBase
public void downloadFinished( String lang, String name, boolean success )
{
if ( success ) {
XWPrefs.setPrefsString( m_activity,
R.string.key_default_language,
lang );
int[] ids = { R.string.key_default_dict,
R.string.key_default_robodict };
for ( int id : ids ) {
XWPrefs.setPrefsString( m_activity, id, name );
}
XWPrefs.setPrefsBoolean( m_activity,
R.string.key_got_langdict,
true );
// TODO: set language and dict pref to match
}
}
};