summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/CacheableTextView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher2/CacheableTextView.java')
-rw-r--r--src/com/android/launcher2/CacheableTextView.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher2/CacheableTextView.java b/src/com/android/launcher2/CacheableTextView.java
index 167133da0..136ce21a2 100644
--- a/src/com/android/launcher2/CacheableTextView.java
+++ b/src/com/android/launcher2/CacheableTextView.java
@@ -21,6 +21,7 @@ import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Bitmap.Config;
+import android.graphics.PorterDuff.Mode;
import android.text.Layout;
import android.util.AttributeSet;
import android.widget.TextView;
@@ -111,7 +112,7 @@ public class CacheableTextView extends TextView {
mCache = Bitmap.createBitmap(width, height, Config.ARGB_8888);
mCacheCanvas.setBitmap(mCache);
} else {
- mCacheCanvas.drawColor(0x00000000);
+ mCacheCanvas.drawColor(0, Mode.CLEAR);
}
mCacheCanvas.save();