diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java index f3baa6c07..d1ca0b5dc 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java @@ -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(); + } + }