mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
fix test to hide menu when it'll otherwise cause an array
out-of-bounds exception. Thanks Aidan.
This commit is contained in:
parent
77c92ac4f3
commit
590ae6bd8c
1 changed files with 1 additions and 1 deletions
|
@ -1356,7 +1356,7 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
// selected
|
||||
enable = 1 == nGroupsSelected;
|
||||
Utils.setItemVisible( menu, R.id.games_group_moveup,
|
||||
enable && 0 <= selGroupPos );
|
||||
enable && 0 < selGroupPos );
|
||||
Utils.setItemVisible( menu, R.id.games_group_movedown, enable
|
||||
&& (selGroupPos + 1) < groupCount );
|
||||
|
||||
|
|
Loading…
Reference in a new issue