We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 604e8e9 + a0aba07 commit b45d0ceCopy full SHA for b45d0ce
apng-drawable/src/main/kotlin/com/linecorp/apng/ApngDrawable.kt
@@ -170,19 +170,15 @@ class ApngDrawable @VisibleForTesting internal constructor(
170
if (isStarted) {
171
progressAnimationElapsedTime()
172
}
173
- val drawingFrameIndex = currentFrameIndex
174
apngState.apng.drawWithIndex(
175
- drawingFrameIndex,
+ currentFrameIndex,
176
canvas,
177
null,
178
bounds,
179
paint
180
)
181
182
- scheduleSelf(
183
- { invalidateSelf() },
184
- apngState.apng.frameDurations[drawingFrameIndex].toLong()
185
- )
+ invalidateSelf()
186
187
188
0 commit comments