Add more info to setMaxFrame docs (#1690)
diff --git a/lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java b/lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java
index c5c38f6..4240035 100644
--- a/lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java
+++ b/lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java
@@ -638,6 +638,9 @@
/**
* Sets the maximum frame that the animation will end at when playing or looping.
+ *
+ * The value will be clamped to the composition bounds. For example, setting Integer.MAX_VALUE would result in the same
+ * thing as composition.endFrame.
*/
public void setMaxFrame(int endFrame) {
lottieDrawable.setMaxFrame(endFrame);
diff --git a/lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java b/lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java
index 9364c21..a274ab3 100644
--- a/lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java
+++ b/lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java
@@ -522,6 +522,9 @@
/**
* Sets the maximum frame that the animation will end at when playing or looping.
+ *
+ * The value will be clamped to the composition bounds. For example, setting Integer.MAX_VALUE would result in the same
+ * thing as composition.endFrame.
*/
public void setMaxFrame(final int maxFrame) {
if (composition == null) {