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

Make ImageHolder.applyTo() use DrawerImageLoader #2716

Merged
merged 2 commits into from
Mar 26, 2021

Conversation

cketti
Copy link
Sponsor Contributor

@cketti cketti commented Mar 25, 2021

I was trying to use DrawerImageLoader with a custom URI scheme for icons in ProfileDrawerItem. This didn't work because ImageHolder.applyTo() didn't have support for DrawerImageLoader. The view that is used to display the icon, BezelImageView, calls through to DrawerImageLoader, but only for http(s) URIs.

This PR adds DrawerImageLoader support to ImageHolder.applyTo() and removes the now unnecessary code in BezelImageView.

Now that ImageHolder.applyTo() calls DrawerImageLoader we don't have to do it inside BezelImageView.setImageURI() anymore.
@mikepenz
Copy link
Owner

Thank you so much. I hope I'll be able to get this merged this weekend :)

@mikepenz mikepenz merged commit 95c2c0d into mikepenz:develop Mar 26, 2021
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

2 participants