public void setMaxFrame(final int maxFrame) {
    if (composition == null) {
      lazyCompositionTasks.add(c -> setMaxFrame(maxFrame));
      return;
    }
    animator.setMaxFrame(maxFrame + 0.99f);
  }
Sets the maximum frame that the animation will end at when playing or looping.
<p>
The value will be clamped to the composition bounds. For example, setting Integer.MAX_VALUE would result in the same
thing as composition.endFrame.
lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java