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

Upgrade to Coil v0.12.0 #63

Merged
merged 1 commit into from Aug 19, 2020
Merged

Upgrade to Coil v0.12.0 #63

merged 1 commit into from Aug 19, 2020

Conversation

chrisbanes
Copy link
Contributor

No description provided.

@chrisbanes chrisbanes merged commit 328233e into main Aug 19, 2020
@chrisbanes chrisbanes deleted the cb/coil-0.12 branch August 19, 2020 19:58
) = RequestActor<IntSize, RequestResult?> { size ->
when {
request.sizeResolver != null -> {
// If the request has a sizeResolver set, we just execute the request as-is
request.sizeResolver !is DisplaySizeResolver -> {
Copy link

Choose a reason for hiding this comment

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

It's probably better to check request.defined.sizeResolver != null. request.sizeResolver could be set explicitly to DisplaySizeResolver (e.g. ImageRequest.Builder(context).data(...).sizeResolver(DisplaySizeResolver(context)).build()). request.defined.sizeResolver is always null unless it is set explicitly when building the request.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Fixed in #64

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

Successfully merging this pull request may close these issues.

None yet

4 participants