-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Description
This issue is based on #526 .
In case of an application that has a deep stack of activities (and some other use cases like device having a low heap memory) displaying images using Glide, I think it would be a great if the app could indicate Glide to clear/recycle resources on onStop() and reload the requests on onStart(). Since the activity/fragment is no longer visible to the user the memory can be reused by future activities.
I've managed to implement by manually loading the images onStart and clearing them onStop using Glide.clear(view) to avoid OOM in the case user opened a deep stack of activities. I think is fairly acceptable if the user opens multiple screens and navigating back to see at some point placeholders instead previous loaded images.