Skip to content

Commit

Permalink
Fix VibrationEffectComposition return type
Browse files Browse the repository at this point in the history
  • Loading branch information
janseeger committed Dec 16, 2024
1 parent 1f6c9dd commit 3d0957e
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ fun Composition.addPrimitive(
primitiveId: Int,
@FloatRange(from = 0.0, to = 1.0) scale: Float,
delay: Duration
) {
addPrimitive(
/* primitiveId = */ primitiveId,
/* scale = */ scale,
/* delay = */ delay.inWholeMilliseconds.toInt()
)
}
): Composition = addPrimitive(
/* primitiveId = */ primitiveId,
/* scale = */ scale,
/* delay = */ delay.inWholeMilliseconds.toInt()
)

0 comments on commit 3d0957e

Please sign in to comment.