mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
revert recent change hiding buttons: re-layout of games list that
results is too visually disruptive.
This commit is contained in:
parent
db8620451c
commit
4481b1db39
1 changed files with 2 additions and 3 deletions
|
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue