Skip to content

Add a Painter variant of the placeholder APIs#5296

Merged
sjudd merged 1 commit intobumptech:masterfrom
sjudd:add_painter_placeholder
Sep 26, 2023
Merged

Add a Painter variant of the placeholder APIs#5296
sjudd merged 1 commit intobumptech:masterfrom
sjudd:add_painter_placeholder

Conversation

@sjudd
Copy link
Copy Markdown
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 force-pushed the add_painter_placeholder branch from 500377b to da1da08 Compare September 26, 2023 04:25
@sjudd sjudd force-pushed the add_painter_placeholder branch from da1da08 to 29f92ce Compare September 26, 2023 04:29
@sjudd sjudd enabled auto-merge (rebase) September 26, 2023 04:40
@sjudd sjudd merged commit 9809d98 into bumptech:master Sep 26, 2023
@ExperimentalGlideComposeApi
internal interface RequestListener {
fun onStateChanged(model: Any?, drawable: Drawable?, requestState: RequestState)
fun onStateChanged(model: Any?, painter: Painter?, requestState: RequestState)
Copy link
Copy Markdown

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
Copy Markdown

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