remove trade menuitem when game over

This commit is contained in:
Eric House 2013-11-11 05:31:18 -08:00
parent 35721975db
commit a7b1e00cc2

View file

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