Skip to content

Commit 35fe481

Browse files
committed
Fix: 46404ad
1 parent 46404ad commit 35fe481

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

library/src/main/java/com/sonsation/library/ShadowLayout.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -277,14 +277,9 @@ class ShadowLayout : FrameLayout {
277277
if (stroke?.isEnable == true) {
278278

279279
if (stroke?.drawAsOverlay == true) {
280-
281-
if (clipOutLine) {
282-
canvas.clipPath(outlinePath)
283-
}
284-
285-
super.dispatchDraw(canvas)
286-
287280
canvas.drawPath(outlinePath, outlinePaint)
281+
canvas.clipPath(backgroundPath)
282+
super.dispatchDraw(canvas)
288283
return
289284
} else {
290285
canvas.drawPath(outlinePath, outlinePaint)

0 commit comments

Comments
 (0)