mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +01:00
set default language and wordlist after downloading for non-english
device
This commit is contained in:
parent
a4e24ec566
commit
7cbec919ef
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue