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

Add a Painter variant of the placeholder APIs #5296

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

sjudd
Copy link
Collaborator

@sjudd sjudd commented Sep 26, 2023

Fixes #5224

We could go further and remove the drawable / resource id variants entirely, but it won't lead to a huge simplification internally because we still have to deal with those types from RequestBuilder.

@sjudd sjudd enabled auto-merge (rebase) September 26, 2023 04:40
@sjudd sjudd merged commit 9809d98 into bumptech:master Sep 26, 2023
4 checks passed
@@ -65,7 +65,7 @@ import kotlin.math.roundToInt

@ExperimentalGlideComposeApi
internal interface RequestListener {
fun onStateChanged(model: Any?, drawable: Drawable?, requestState: RequestState)
fun onStateChanged(model: Any?, painter: Painter?, requestState: RequestState)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fun onStateChanged(model: Any?, painter: Painter?, requestState: RequestState)

@Anuwatrodcharoen
Copy link

Fixes #5224

We could go further and remove the drawable / resource id variants entirely, but it won't lead to a huge simplification internally because we still have to deal with those types from RequestBuilder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compose GlideImage set loading placeholder with @Composable Painter bugs
2 participants