@Override
  public int getLoopDurationMs() {
    int total = 0;
    for (int i = 0; i < getFrameCount(); i++) {
      total += getFrameDurationMs(i);
    }
    return total;
  }
Local drawable animation backend that chains local drawables together.
samples/animation2/src/main/java/com/facebook/samples/animation2/local/LocalDrawableAnimationBackend.java