hide Add button/menuitem when there's a selection

This commit is contained in:
Eric House 2013-10-16 07:36:36 -07:00
parent 9d6facce84
commit f4160c178d

View file

@ -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 );