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

solve issue #2 about TintImageView bug #9

Merged
merged 2 commits into from
Oct 10, 2016
Merged

Conversation

jaydenyuhy
Copy link
Contributor

如果在改变tint颜色后,直接调用setImageDrawable()会判断传入的drawable跟已有的是否相同,如果相同则不会调用invalidate()方法重绘,需要手动调用invalidate()方法颜色才会自动更新。

Copy link
Member

@xyczero xyczero left a comment

Choose a reason for hiding this comment

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

应该不用刷新整个view

fix bug that image drawable may not refresh when tinting it.
@xyczero xyczero merged commit b675fad into bilibili:master Oct 10, 2016
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