glide icon indicating copy to clipboard operation
glide copied to clipboard

[compose] Glide Compose does not stop animations when the app is in background, leading to extensive CPU usage.

Open mhozza opened this issue 6 months ago • 0 comments

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:

GlideImage(
        model = uri,
        contentDescription = ...,   
)

mhozza avatar Aug 22 '24 13:08 mhozza