mikepenz / MaterialDrawer

The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
https://mikepenz.dev
Apache License 2.0
11.67k stars 2.05k forks source link

Make ImageHolder.applyTo() use DrawerImageLoader #2716

Closed cketti closed 3 years ago

cketti commented 3 years ago

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.

mikepenz commented 3 years ago

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