mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +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_commit,
|
||||
inTrade && m_gsi.tradeTilesSelected );
|
||||
Utils.setItemVisible( menu, R.id.board_menu_trade,
|
||||
!m_gameOver && !inTrade );
|
||||
if ( !inTrade ) {
|
||||
boolean enabled = null == m_gsi || m_gsi.curTurnSelected;
|
||||
item = menu.findItem( R.id.board_menu_done );
|
||||
|
|
Loading…
Reference in a new issue