Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit 2932b0d

Browse files
committed
Fix FloatRange annotation
1 parent 83684f5 commit 2932b0d

File tree

1 file changed

+2
-2
lines changed
  • constraintlayout/compose/src/main/java/androidx/constraintlayout/compose

1 file changed

+2
-2
lines changed

constraintlayout/compose/src/main/java/androidx/constraintlayout/compose/ConstrainScope.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ class ConstrainScope internal constructor(internal val id: Any) {
373373
*/
374374
fun centerHorizontallyTo(
375375
other: ConstrainedLayoutReference,
376-
@FloatRange(from = 0.0f.toDouble(), to = 1.0f.toDouble()) bias: Float = 0.5f
376+
@FloatRange(from = 0.0, to = 1.0) bias: Float = 0.5f
377377
) {
378378
linkTo(start = other.start, end = other.end, bias = bias)
379379
}
@@ -385,7 +385,7 @@ class ConstrainScope internal constructor(internal val id: Any) {
385385
*/
386386
fun centerVerticallyTo(
387387
other: ConstrainedLayoutReference,
388-
@FloatRange(from = 0.0f.toDouble(), to = 1.0f.toDouble()) bias: Float = 0.5f
388+
@FloatRange(from = 0.0, to = 1.0) bias: Float = 0.5f
389389
) {
390390
linkTo(other.top, other.bottom, bias = bias)
391391
}

0 commit comments

Comments
 (0)