From f4160c178dc168d525ac596102eef91e0949ffef Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 16 Oct 2013 07:36:36 -0700 Subject: [PATCH] hide Add button/menuitem when there's a selection --- .../android/XWords4/src/org/eehouse/android/xw4/GamesList.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java index 286f30c8c..5ae2b65a2 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java @@ -686,6 +686,8 @@ public class GamesList extends XWExpandableListActivity } int nSelected = m_selected.size(); + + Utils.setItemVisible( menu, R.id.gamel_menu_newgame, 0 == nSelected ); Utils.setItemVisible( menu, R.id.gamel_menu_delete, 0 < nSelected ); Utils.setItemVisible( menu, R.id.listl_item_config, 1 == nSelected );