mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
on return from selecting a new language while creating a game, change
players' wordlists to match
This commit is contained in:
parent
7e9c156747
commit
03843e77d1
1 changed files with 11 additions and 8 deletions
|
@ -466,6 +466,7 @@ public class GameConfigDelegate extends DelegateBase
|
|||
break;
|
||||
case REQUEST_LANG:
|
||||
String langName = data.getStringExtra( DictsDelegate.RESULT_LAST_LANG );
|
||||
selLangChanged( langName );
|
||||
setSpinnerSelection( m_langSpinner, langName );
|
||||
break;
|
||||
default:
|
||||
|
@ -796,14 +797,7 @@ public class GameConfigDelegate extends DelegateBase
|
|||
if ( chosen.equals( m_browseText ) ) {
|
||||
DictsDelegate.launchForResult( m_activity, REQUEST_LANG );
|
||||
} else {
|
||||
m_gi.setLang( DictLangCache.
|
||||
getLangLangCode( m_activity,
|
||||
chosen ) );
|
||||
loadPlayersList();
|
||||
if ( null != m_dictSpinner ) {
|
||||
configDictSpinner( m_dictSpinner, m_gi.dictLang,
|
||||
m_gi.dictName );
|
||||
}
|
||||
selLangChanged( chosen );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -817,6 +811,15 @@ public class GameConfigDelegate extends DelegateBase
|
|||
}
|
||||
}
|
||||
|
||||
private void selLangChanged( String chosen )
|
||||
{
|
||||
m_gi.setLang( DictLangCache.getLangLangCode( m_activity, chosen ) );
|
||||
loadPlayersList();
|
||||
if ( null != m_dictSpinner ) {
|
||||
configDictSpinner( m_dictSpinner, m_gi.dictLang, m_gi.dictName );
|
||||
}
|
||||
}
|
||||
|
||||
private void configSpinnerWDownload( Spinner spinner,
|
||||
ArrayAdapter adapter,
|
||||
OnItemSelectedListener onSel,
|
||||
|
|
Loading…
Reference in a new issue