Skip to content

Commit

Permalink
Fix FloatRange annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
oscar-ad committed May 19, 2022
1 parent 83684f5 commit 2932b0d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ class ConstrainScope internal constructor(internal val id: Any) {
*/
fun centerHorizontallyTo(
other: ConstrainedLayoutReference,
@FloatRange(from = 0.0f.toDouble(), to = 1.0f.toDouble()) bias: Float = 0.5f
@FloatRange(from = 0.0, to = 1.0) bias: Float = 0.5f
) {
linkTo(start = other.start, end = other.end, bias = bias)
}
Expand All @@ -385,7 +385,7 @@ class ConstrainScope internal constructor(internal val id: Any) {
*/
fun centerVerticallyTo(
other: ConstrainedLayoutReference,
@FloatRange(from = 0.0f.toDouble(), to = 1.0f.toDouble()) bias: Float = 0.5f
@FloatRange(from = 0.0, to = 1.0) bias: Float = 0.5f
) {
linkTo(other.top, other.bottom, bias = bias)
}
Expand Down

0 comments on commit 2932b0d

Please sign in to comment.