fix test to hide menu when it'll otherwise cause an array

out-of-bounds exception. Thanks Aidan.
This commit is contained in:
Eric House 2015-10-07 08:06:26 -07:00
parent 77c92ac4f3
commit 590ae6bd8c

View file

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