Skip to content

Commit

Permalink
Switched to using the ApplicationContext for tinting drawables.
Browse files Browse the repository at this point in the history
  • Loading branch information
jguerinet committed Mar 10, 2016
1 parent 75de295 commit 6226483
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ private void icon(int position, @DrawableRes int iconId, @ColorRes int colorId,
drawable.setAlpha(0);
}
else if (icon.mColorId != 0){
DrawableCompat.setTint(drawable,
ContextCompat.getColor(mContext, icon.mColorId));
DrawableCompat.setTint(drawable, ContextCompat.getColor(
mContext.getApplicationContext(), icon.mColorId));
}
}
}
Expand Down

0 comments on commit 6226483

Please sign in to comment.