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

Allow for the use of drawable in place of resources when setting icons #14

Merged
merged 5 commits into from
Oct 25, 2017

Conversation

turing-tech
Copy link
Contributor

Useful for example when the image to be used is fetched from online and therefore
not a resource.

* @param icon Icon drawable for sneaker
* @return
*/
public Sneaker setIcon(Drawable icon) {
Copy link

Choose a reason for hiding this comment

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

Love this idea, but you should check for a null icon. Or add @nonnull annotation to reduce exceptions

@Hamadakram Hamadakram merged commit 739f7cc into Hamadakram:master Oct 25, 2017
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.

3 participants