Esempio n. 1
0
  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;
  }
Esempio n. 2
0
  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;
  }