Fix dialog shadow

This commit is contained in:
Moez Bhatti
2016-01-04 14:54:56 -05:00
parent 343cdad1af
commit eaee368084
@@ -65,13 +65,13 @@ public class QKLinearLayout extends LinearLayout {
@TargetApi(16)
@Override
public void setBackground(Drawable background) {
background.mutate().setColorFilter(mBackgroundTint, PorterDuff.Mode.SRC_ATOP);
background.mutate().setColorFilter(mBackgroundTint, PorterDuff.Mode.MULTIPLY);
super.setBackground(background);
}
@Override
public void setBackgroundDrawable(Drawable background) {
background.mutate().setColorFilter(mBackgroundTint, PorterDuff.Mode.SRC_ATOP);
background.mutate().setColorFilter(mBackgroundTint, PorterDuff.Mode.MULTIPLY);
super.setBackgroundDrawable(background);
}
}