mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
hide Add button/menuitem when there's a selection
This commit is contained in:
parent
9d6facce84
commit
f4160c178d
1 changed files with 2 additions and 0 deletions
|
@ -686,6 +686,8 @@ public class GamesList extends XWExpandableListActivity
|
||||||
}
|
}
|
||||||
|
|
||||||
int nSelected = m_selected.size();
|
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.gamel_menu_delete, 0 < nSelected );
|
||||||
Utils.setItemVisible( menu, R.id.listl_item_config, 1 == nSelected );
|
Utils.setItemVisible( menu, R.id.listl_item_config, 1 == nSelected );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue