Skip to content
This repository was archived by the owner on Jan 10, 2020. It is now read-only.

Commit 2b96eae

Browse files
authored
Fix crash on KeyFramedObject applied (#136)
1 parent d6ae643 commit 2b96eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/keyframes/src/main/java/com/facebook/keyframes/model/keyframedmodels/KeyFramedObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public KeyFramedObject(List<T> objects, float[][][] timingCurves) {
3939
}
4040

4141
mFirstDescribedFrame = mObjects.keyAt(0);
42-
mLastDescribedFrame = mObjects.keyAt(listSize - 1);
42+
mLastDescribedFrame = mObjects.keyAt(mObjects.size() - 1);
4343
mInterpolators = KeyFrameAnimationHelper.buildInterpolatorList(timingCurves);
4444
}
4545

0 commit comments

Comments
 (0)