File tree Expand file tree Collapse file tree
library/src/com/github/mmin18/widget Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public class RealtimeBlurView extends View {
3737 private Bitmap mBitmapToBlur , mBlurredBitmap ;
3838 private Canvas mBlurringCanvas ;
3939 private boolean mIsRendering ;
40- private boolean mIsCircle = false ;
40+ private boolean mIsCircle = false , isCircleDrawn = false ;
4141 private Paint mPaint ;
4242 private final Rect mRectSrc = new Rect (), mRectDst = new Rect ();
4343 // mDecorView should be the root view of the activity (even if you are on a different window like a dialog)
@@ -273,7 +273,8 @@ public boolean onPreDraw() {
273273 mBlurringCanvas .restoreToCount (rc );
274274 }
275275
276- if (mIsCircle ) {
276+ if (mIsCircle && !isCircleDrawn ) {
277+ isCircleDrawn = true
277278 mBitmapToBlur = getBitmapClippedCircle (mBitmapToBlur );
278279 }
279280
You can’t perform that action at this time.
0 commit comments