Issue details / Repro steps / Use case background:
Glide Compose does not stop animations when the app is in background, leading to extensive CPU usage.
The ImageViewTarget pauses the animation in onStop. The GlideImage should ideally do the same, preferably by default.
Option to pause animation in onPause instead of onStop would also be useful.
Layout XML:
GlideImage(
model = uri,
contentDescription = ...,
)
Glide Version: head
Integration libraries: compose
Device/Android Version: all
Issue details / Repro steps / Use case background: Glide Compose does not stop animations when the app is in background, leading to extensive CPU usage.
The ImageViewTarget pauses the animation in onStop. The GlideImage should ideally do the same, preferably by default. Option to pause animation in onPause instead of onStop would also be useful.
Layout XML: