-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
base: master
Are you sure you want to change the base?
Conversation
* @param viewClass class to be ignored by Calligraphy | ||
* @return true if class should not be injected, false otherwise | ||
*/ | ||
public boolean isIgnoredClass(Class<?> viewClass) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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