bumptech / bumptech/glide

GifDrawable continues to play after .clear() called

Open
#4,479 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

After loading a GifDrawable in Glide the GifDrawable will continue to play after a clear,

Steps to reproduce:

- Load a GIF drawable into a SimpleTarget
- Call resource.setCallback() once the GifDrawable has loaded
- Once the view is recycled call Glide.with().clear(target)

At this point the GifDrawable continues to loop indefinitely with no way to stop it. I'm not convinced calling clear here is doing anything.

Most recent build.

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.