private int previousDisplayableIndex() { int previousIndex = previousIndex(); // Skip images set to not display for (@SuppressWarnings("unused") int index = 0; !animation.getRadarGroups().get(previousIndex).shouldDisplay(); previousIndex = previousIndex(previousIndex)) ; return previousIndex; }
private int nextDisplayableIndex() { AnimationType animationType = animation.getPreferences().getType(); int nextIndex = nextIndex(); // Skip images set to not display for (@SuppressWarnings("unused") int index = 0; !animation.getRadarGroups().get(nextIndex).shouldDisplay(); nextIndex = nextAnimationIndex(animationType, isForwardRock, nextIndex)) ; return nextIndex; }