From 4481b1db3958a7ba14811f0ab69bffaa3fb31a06 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 5 Mar 2015 07:22:29 -0800 Subject: [PATCH] revert recent change hiding buttons: re-layout of games list that results is too visually disruptive. --- .../src/org/eehouse/android/xw4/GamesListDelegate.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java index 9e80ffb34..978d0f0e0 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java @@ -998,10 +998,9 @@ public class GamesListDelegate extends ListDelegateBase super.invalidateOptionsMenuIf(); if ( !XWPrefs.getHideNewgameButtons( m_activity ) ) { - int vis = 0 == m_selGames.size() && 1 >= m_selGroupIDs.size() - ? View.VISIBLE : View.GONE; + boolean enabled = 0 == m_selGames.size() && 1 >= m_selGroupIDs.size(); for ( Button button : m_newGameButtons ) { - button.setVisibility( vis ); + button.setEnabled( enabled ); } } }