mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
disable delete context menuitem when game open
This commit is contained in:
parent
cfbd06927a
commit
4d24fd38f5
1 changed files with 5 additions and 3 deletions
|
@ -1568,16 +1568,18 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
Utils.setItemVisible( menu, hideId, false );
|
||||
|
||||
if ( null != item ) {
|
||||
enable = BoardDelegate.rematchSupported( m_activity,
|
||||
item.getRowID() );
|
||||
long rowID = item.getRowID();
|
||||
enable = BoardDelegate.rematchSupported( m_activity, rowID );
|
||||
Utils.setItemVisible( menu, R.id.games_game_rematch, enable );
|
||||
|
||||
enable = item.getSummary().isMultiGame()
|
||||
&& (BuildConfig.DEBUG || XWPrefs.getDebugEnabled( m_activity ));
|
||||
Utils.setItemVisible( menu, R.id.games_game_invites, enable );
|
||||
|
||||
enable = !m_launchedGames.contains( rowID );
|
||||
Utils.setItemVisible( menu, R.id.games_game_delete, enable );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public boolean onContextItemSelected( MenuItem item )
|
||||
|
|
Loading…
Reference in a new issue