| 214 | } |
| 215 | |
| 216 | void LottieView::restart() |
| 217 | { |
| 218 | mCurCount--; |
| 219 | if (mLoop || mRepeatCount) { |
| 220 | if (mRepeatMode == LottieView::RepeatMode::Reverse) |
| 221 | mReverse = !mReverse; |
| 222 | else |
| 223 | mReverse = false; |
| 224 | |
| 225 | if (mAnimator) ecore_animator_del(mAnimator); |
| 226 | mAnimator = ecore_animator_timeline_add(duration()/mSpeed, animator, this); |
| 227 | } |
| 228 | } |
nothing calls this directly
no outgoing calls
no test coverage detected