mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +01:00
remove trade menuitem when game over
This commit is contained in:
parent
35721975db
commit
a7b1e00cc2
1 changed files with 2 additions and 0 deletions
|
@ -750,6 +750,8 @@ public class BoardActivity extends XWActivity
|
||||||
Utils.setItemVisible( menu, R.id.board_menu_trade_cancel, inTrade );
|
Utils.setItemVisible( menu, R.id.board_menu_trade_cancel, inTrade );
|
||||||
Utils.setItemVisible( menu, R.id.board_menu_trade_commit,
|
Utils.setItemVisible( menu, R.id.board_menu_trade_commit,
|
||||||
inTrade && m_gsi.tradeTilesSelected );
|
inTrade && m_gsi.tradeTilesSelected );
|
||||||
|
Utils.setItemVisible( menu, R.id.board_menu_trade,
|
||||||
|
!m_gameOver && !inTrade );
|
||||||
if ( !inTrade ) {
|
if ( !inTrade ) {
|
||||||
boolean enabled = null == m_gsi || m_gsi.curTurnSelected;
|
boolean enabled = null == m_gsi || m_gsi.curTurnSelected;
|
||||||
item = menu.findItem( R.id.board_menu_done );
|
item = menu.findItem( R.id.board_menu_done );
|
||||||
|
|
Loading…
Add table
Reference in a new issue