Recently I\'ve seen appeared a lint error in my code:
Should pass resolved color instead of resource id here: getResources().getColor(R.color.maps_l
Since I'm still finding this on Google and it is deprecated, I thought I'd might as well share the current method of doing this.
check getResources().getColor() is deprecated
ContextCompat.getColor(context, R.color.color_name)