Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用Glide加载图片问题 #29

Closed
Weststreet opened this issue Jan 3, 2017 · 2 comments
Closed

用Glide加载图片问题 #29

Weststreet opened this issue Jan 3, 2017 · 2 comments
Labels

Comments

@Weststreet
Copy link

1.Callback会导致内存泄漏。
2.在图片未加载完成退出再次进入会长时间黑屏。

目前可以解决的办法:在退出fragment或者activity的时候调用Glide.clear(glideDownloadTarget);清除掉当前加载的target。

@Piasy
Copy link
Owner

Piasy commented Jan 3, 2017

Fresco 加载也存在同样的问题,在 view detach 时取消加载任务,可以解决这个问题,但具体能否取消、怎么取消,需要看一下 API。欢迎提交 pr!

@Piasy Piasy added the bug label Jan 3, 2017
@Piasy
Copy link
Owner

Piasy commented Oct 2, 2017

Memory leak: track #43.
Cancel action: track #36.

@Piasy Piasy closed this as completed Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants