mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
hide rather than disable newgame buttons when they can't be used
This commit is contained in:
parent
ed9ffc229d
commit
9565df7c69
1 changed files with 3 additions and 2 deletions
|
@ -998,9 +998,10 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
super.invalidateOptionsMenuIf();
|
||||
|
||||
if ( !XWPrefs.getHideNewgameButtons( m_activity ) ) {
|
||||
boolean enable = 0 == m_selGames.size() && 1 >= m_selGroupIDs.size();
|
||||
int vis = 0 == m_selGames.size() && 1 >= m_selGroupIDs.size()
|
||||
? View.VISIBLE : View.GONE;
|
||||
for ( Button button : m_newGameButtons ) {
|
||||
button.setEnabled( enable );
|
||||
button.setVisibility( vis );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue