mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
refactor into common subroutine -- no behavior change
This commit is contained in:
parent
994a73e28b
commit
d1b1e6db14
1 changed files with 8 additions and 4 deletions
|
@ -518,8 +518,7 @@ public class GameConfig extends XWActivity
|
|||
// break;
|
||||
// }
|
||||
} else if ( m_refreshRoomsButton == view ) {
|
||||
new RefreshNamesTask( this, this, m_gi.dictLang,
|
||||
m_gi.nPlayers, m_roomChoose ).execute();
|
||||
refreshNames();
|
||||
} else if ( m_playButton == view ) {
|
||||
// Launch BoardActivity for m_path, but ONLY IF user
|
||||
// confirms any changes required. So we either launch
|
||||
|
@ -733,8 +732,7 @@ public class GameConfig extends XWActivity
|
|||
private void adjustConnectStuff()
|
||||
{
|
||||
if ( m_joinPublicCheck.isChecked() ) {
|
||||
new RefreshNamesTask( this, this, m_gi.dictLang,
|
||||
m_gi.nPlayers, m_roomChoose ).execute();
|
||||
refreshNames();
|
||||
m_privateRoomsSet.setVisibility( View.GONE );
|
||||
m_publicRoomsSet.setVisibility( View.VISIBLE );
|
||||
|
||||
|
@ -914,4 +912,10 @@ public class GameConfig extends XWActivity
|
|||
finish();
|
||||
}
|
||||
|
||||
private void refreshNames()
|
||||
{
|
||||
new RefreshNamesTask( this, this, m_gi.dictLang,
|
||||
m_gi.nPlayers, m_roomChoose ).execute();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue