|
@@ -18,6 +18,7 @@ import com.bumptech.glide.load.DataSource
|
|
|
import com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
|
import com.bumptech.glide.load.engine.GlideException
|
|
|
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
|
|
|
+import com.bumptech.glide.load.resource.gif.GifDrawable
|
|
|
import com.bumptech.glide.request.RequestListener
|
|
|
import com.bumptech.glide.request.target.Target
|
|
|
import com.bumptech.glide.request.transition.NoTransition
|
|
@@ -497,6 +498,9 @@ class WebtoonPageHolder(
|
|
|
dataSource: DataSource?,
|
|
|
isFirstResource: Boolean
|
|
|
): Boolean {
|
|
|
+ if (resource is GifDrawable) {
|
|
|
+ resource.setLoopCount(GifDrawable.LOOP_INTRINSIC)
|
|
|
+ }
|
|
|
onImageDecoded()
|
|
|
return false
|
|
|
}
|