[动画崩溃]
This commit is contained in:
yangyakun
2024-03-21 16:46:11 +08:00
parent 7395e091c6
commit 2f9df646a0

View File

@@ -115,7 +115,11 @@ class FrameAnimatorContainer (resId: Int,
mOnAnimationStoppedListener?.playOnce()
}
val nextInfo= if(sequence){// 倒叙
mFrames[mIndex]
try {
mFrames[mIndex]
}catch (e:ArrayIndexOutOfBoundsException){
mFrames.last()
}
}else{
mFrames[mFrames.size-1-mIndex]
}