Skip to content

Commit

Permalink
fix foreground helper bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xyczero committed Oct 15, 2017
1 parent 62f753e commit ccf1457
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public AppCompatForegroundHelper(View view, TintManager tintManager) {
void loadFromAttribute(AttributeSet attrs, int defStyleAttr) {
TypedArray array = mView.getContext().obtainStyledAttributes(attrs, ATTR, defStyleAttr, 0);
if (array.hasValue(1)) {
mForegroundResId = array.getResourceId(1, 0);
mForegroundTintResId = array.getResourceId(1, 0);
if (array.hasValue(2)) {
setSupportForegroundTintMode(DrawableUtils.parseTintMode(array.getInt(2, 0), null));
}
Expand Down

0 comments on commit ccf1457

Please sign in to comment.