More 5.0 theme fixes

This commit is contained in:
Moez Bhatti
2019-11-24 02:22:53 -05:00
parent a8cc408390
commit fbf10d6e6e
2 changed files with 10 additions and 1 deletions
@@ -64,7 +64,7 @@ fun View.setBackgroundTint(color: Int) {
// API 21 doesn't support this
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP_MR1) {
background?.setColorFilter(color, PorterDuff.Mode.SRC_ATOP)
background?.setColorFilter(color, PorterDuff.Mode.SRC_IN)
}
backgroundTintList = ColorStateList.valueOf(color)