mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +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;
|
// break;
|
||||||
// }
|
// }
|
||||||
} else if ( m_refreshRoomsButton == view ) {
|
} else if ( m_refreshRoomsButton == view ) {
|
||||||
new RefreshNamesTask( this, this, m_gi.dictLang,
|
refreshNames();
|
||||||
m_gi.nPlayers, m_roomChoose ).execute();
|
|
||||||
} else if ( m_playButton == view ) {
|
} else if ( m_playButton == view ) {
|
||||||
// Launch BoardActivity for m_path, but ONLY IF user
|
// Launch BoardActivity for m_path, but ONLY IF user
|
||||||
// confirms any changes required. So we either launch
|
// confirms any changes required. So we either launch
|
||||||
|
@ -733,8 +732,7 @@ public class GameConfig extends XWActivity
|
||||||
private void adjustConnectStuff()
|
private void adjustConnectStuff()
|
||||||
{
|
{
|
||||||
if ( m_joinPublicCheck.isChecked() ) {
|
if ( m_joinPublicCheck.isChecked() ) {
|
||||||
new RefreshNamesTask( this, this, m_gi.dictLang,
|
refreshNames();
|
||||||
m_gi.nPlayers, m_roomChoose ).execute();
|
|
||||||
m_privateRoomsSet.setVisibility( View.GONE );
|
m_privateRoomsSet.setVisibility( View.GONE );
|
||||||
m_publicRoomsSet.setVisibility( View.VISIBLE );
|
m_publicRoomsSet.setVisibility( View.VISIBLE );
|
||||||
|
|
||||||
|
@ -914,4 +912,10 @@ public class GameConfig extends XWActivity
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void refreshNames()
|
||||||
|
{
|
||||||
|
new RefreshNamesTask( this, this, m_gi.dictLang,
|
||||||
|
m_gi.nPlayers, m_roomChoose ).execute();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue