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

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

Open
mhozza opened this issue Aug 22, 2024 · 0 comments

Comments

@mhozza
Copy link

mhozza commented Aug 22, 2024

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 = ...,   
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant