dis/enable shuffle and add-player buttons based on number of players present

This commit is contained in:
Andy2 2010-07-17 06:03:30 -07:00
parent 6ffed8750a
commit 8da9a1e8fa

View file

@ -548,6 +548,13 @@ public class GameConfig extends Activity implements View.OnClickListener,
m_playerLayout.addView( divider );
}
m_addPlayerButton
.setVisibility( names.length >= CurGameInfo.MAX_NUM_PLAYERS?
View.GONE : View.VISIBLE );
m_jugglePlayersButton
.setVisibility( names.length <= 1 ?
View.GONE : View.VISIBLE );
if ( DeviceRole.SERVER_ISSERVER == m_gi.serverRole
&& 0 == m_gi.remoteCount() ) {
showDialog( FORCE_REMOTE );