am 0a1f18fe: Merge "Fix bug: text is sometimes garbled in All Apps" into honeycomb
* commit '0a1f18fe0ad9e3a5e7bc264885da4af106c26b0c': Fix bug: text is sometimes garbled in All Apps
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -417,7 +417,7 @@ public class CellLayout extends ViewGroup implements Dimmable, VisibilityChanged
|
||||
}
|
||||
|
||||
public void updateCache() {
|
||||
mCacheCanvas.drawColor(0x00000000, Mode.CLEAR);
|
||||
mCacheCanvas.drawColor(0, Mode.CLEAR);
|
||||
|
||||
float alpha = getAlpha();
|
||||
setAlpha(1.0f);
|
||||
|
||||
@@ -184,7 +184,7 @@ public class HolographicOutlineHelper {
|
||||
|
||||
// draw the inner and outer blur
|
||||
srcDstCanvas.setBitmap(srcDst);
|
||||
srcDstCanvas.drawColor(0x00000000, PorterDuff.Mode.CLEAR);
|
||||
srcDstCanvas.drawColor(0, PorterDuff.Mode.CLEAR);
|
||||
mHolographicPaint.setColor(color);
|
||||
srcDstCanvas.drawBitmap(thickInnerBlur, thickInnerBlurOffset[0], thickInnerBlurOffset[1],
|
||||
mHolographicPaint);
|
||||
|
||||
Reference in New Issue
Block a user