mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
dis/enable shuffle and add-player buttons based on number of players present
This commit is contained in:
parent
6ffed8750a
commit
8da9a1e8fa
1 changed files with 7 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue