Skip to content

Commit aed12d2

Browse files
committed
Fix bug
1 parent cff0bc5 commit aed12d2

File tree

1 file changed

+3
-3
lines changed
  • library/src/main/java/com/sonsation/library/effet

1 file changed

+3
-3
lines changed

library/src/main/java/com/sonsation/library/effet/Radius.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class Radius(
99

1010
constructor(radius: Float) : this(radius, radius, radius, radius)
1111

12+
val isEnable: Boolean
13+
get() = (topLeftRadius > 0f || topRightRadius > 0f || bottomLeftRadius > 0f || bottomRightRadius > 0f) || radiusHalf
14+
1215
var radiusHalf = false
1316
var radiusWeight = 1f
1417

15-
val isEnable =
16-
(topLeftRadius > 0f || topRightRadius > 0f || bottomLeftRadius > 0f || bottomRightRadius > 0f) || radiusHalf
17-
1818
fun updateRadius(radius: Float) {
1919
this.topLeftRadius = radius
2020
this.topRightRadius = radius

0 commit comments

Comments
 (0)