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

Add ignoreClass to Builder #189

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Malinskiy
Copy link

Iconify projects like (https://github.com/Malinskiy/android-material-icons)[android-material-icons] and (https://github.com/JoanZapata/android-iconify)[android-iconify] have custom TextView classes that should be able to load custom fonts on their own without Calligraphy interfering

* @param viewClass class to be ignored by Calligraphy
* @return true if class should not be injected, false otherwise
*/
public boolean isIgnoredClass(Class<?> viewClass) {
Copy link
Owner

Choose a reason for hiding this comment

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

This should be on the Utils class as this isn't really a configuration method.

Copy link
Author

Choose a reason for hiding this comment

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

@chrisjenx where should I store collection of ignored classes if it will be in utils?

Copy link
Owner

Choose a reason for hiding this comment

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

That should be in the Config. Just iterating across the list should not be done inside of the Config. Config should be just immutable state storage.

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.

2 participants