revert recent change hiding buttons: re-layout of games list that

results is too visually disruptive.
This commit is contained in:
Eric House 2015-03-05 07:22:29 -08:00
parent db8620451c
commit 4481b1db39

View file

@ -998,10 +998,9 @@ public class GamesListDelegate extends ListDelegateBase
super.invalidateOptionsMenuIf(); super.invalidateOptionsMenuIf();
if ( !XWPrefs.getHideNewgameButtons( m_activity ) ) { if ( !XWPrefs.getHideNewgameButtons( m_activity ) ) {
int vis = 0 == m_selGames.size() && 1 >= m_selGroupIDs.size() boolean enabled = 0 == m_selGames.size() && 1 >= m_selGroupIDs.size();
? View.VISIBLE : View.GONE;
for ( Button button : m_newGameButtons ) { for ( Button button : m_newGameButtons ) {
button.setVisibility( vis ); button.setEnabled( enabled );
} }
} }
} }