mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
allow missing items -- since menus are different on different devices
This commit is contained in:
parent
3e6791c66f
commit
a4fe0adb62
1 changed files with 3 additions and 1 deletions
|
@ -351,7 +351,9 @@ public class Utils {
|
|||
public static void setItemVisible( Menu menu, int id, boolean enabled )
|
||||
{
|
||||
MenuItem item = menu.findItem( id );
|
||||
item.setVisible( enabled );
|
||||
if ( null != item ) {
|
||||
item.setVisible( enabled );
|
||||
}
|
||||
}
|
||||
|
||||
public static void setItemEnabled( Menu menu, int id, boolean enabled )
|
||||
|
|
Loading…
Reference in a new issue