Add a Painter variant of the placeholder APIs by sjudd · Pull Request #5296 · bumptech/glide
Conversation
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
mentioned this pull request
| @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)
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters