Skip to content

Commit

Permalink
fix :P
Browse files Browse the repository at this point in the history
  • Loading branch information
ozodrukh committed May 27, 2015
1 parent 5f5192a commit 3eb93c8
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,23 @@ public SupportAnimator startReverseAnimation() {

@Override
protected boolean drawChild(Canvas canvas, View child, long drawingTime) {
if (!mClipOutlines && child != mTarget)
if(!mClipOutlines){
return super.drawChild(canvas, child, drawingTime);
} else if(mTarget == child) {
final int state = canvas.save();

final int state = canvas.save();
mRevealPath.reset();
mRevealPath.addCircle(mCenterX, mCenterY, mRadius, Path.Direction.CW);

mRevealPath.reset();
mRevealPath.addCircle(mCenterX, mCenterY, mRadius, Path.Direction.CW);
canvas.clipPath(mRevealPath);

canvas.clipPath(mRevealPath);
boolean isInvalided = super.drawChild(canvas, child, drawingTime);

boolean isInvalided = super.drawChild(canvas, child, drawingTime);
canvas.restoreToCount(state);

canvas.restoreToCount(state);

return isInvalided;
return isInvalided;
}else{
return super.drawChild(canvas, child, drawingTime);
}
}
}

0 comments on commit 3eb93c8

Please sign in to comment.