Remove use of ColorMatrixColorFilter.setColorMatrix
bug:17262092
Change-Id: I47214486e0b82f01b8babcac4f2f945f233e761d
diff --git a/src/com/android/contacts/widget/MultiShrinkScroller.java b/src/com/android/contacts/widget/MultiShrinkScroller.java
index 570a24b..bba8a93 100644
--- a/src/com/android/contacts/widget/MultiShrinkScroller.java
+++ b/src/com/android/contacts/widget/MultiShrinkScroller.java
@@ -142,8 +142,6 @@
// Objects used to perform color filtering on the header. These are stored as fields for
// the sole purpose of avoiding "new" operations inside animation loops.
private final ColorMatrix mWhitenessColorMatrix = new ColorMatrix();
- private final ColorMatrixColorFilter mColorFilter = new ColorMatrixColorFilter(
- mWhitenessColorMatrix);
private final ColorMatrix mColorMatrix = new ColorMatrix();
private final float[] mAlphaMatrixValues = {
0, 0, 0, 0, 0,
@@ -1116,8 +1114,7 @@
mColorMatrix.postConcat(multiplyBlendMatrix(mHeaderTintColor, colorAlpha));
}
- mColorFilter.setColorMatrix(mColorMatrix);
- mPhotoView.setColorFilter(mColorFilter);
+ mPhotoView.setColorFilter(new ColorMatrixColorFilter(mColorMatrix));
// Tell the photo view what tint we are trying to achieve. Depending on the type of
// drawable used, the photo view may or may not use this tint.
mPhotoView.setTint(mHeaderTintColor);