Skip to content

Commit 7370f6e

Browse files
author
xianzi.zeng
committed
v2.4.6 修复SharpImageView
1 parent 7d507ce commit 7370f6e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sharpview/src/main/java/com/zhaoxing/view/sharpview/SharpImageView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ public SharpImageView(Context context, AttributeSet attrs, int defStyleAttr) {
5151
init(context,attrs,defStyleAttr);
5252
}
5353

54-
Path mPath = new Path();
55-
5654
@Override
5755
protected void onDraw(Canvas canvas) {
5856
if (mSoftBitmap.get() == null || mSoftOutBitmap.get() == null) {
5957
initBitmap();
6058
}
6159
mPaint.setAntiAlias(true);
60+
mCanvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR);
61+
mOutCanvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR);
6262
super.onDraw(mCanvas);
6363
mPaint.setColor(Color.BLACK);
6464
mSharpViewRenderProxy.mSharpDrawable.setBounds(0,0,getWidth(),getHeight());

0 commit comments

Comments
 (0)