Skip to content

Commit

Permalink
Can't avoid SpreadOperator warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Jul 25, 2024
1 parent 68a906a commit 443a006
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ const val MAX_SHOWN_DBA_VALUE_SPECTRUM = 100.0
val NOISE_LEVEL_FONT_SIZE = TextUnit(50F, TextUnitType.Sp)
val SPECTRUM_PLOT_SQUARE_WIDTH = 10.dp
val SPECTRUM_PLOT_SQUARE_OFFSET = 1.dp
const val MIN_FREQUENCY_SPECTRUM = 100.0
const val MAX_FREQUENCY_SPECTRUM = 16000.0

// TODO: Refactor this screen
@Suppress("LargeClass")
Expand Down Expand Up @@ -660,7 +658,7 @@ class MeasurementScreen(
}
}

@Suppress("LongParameterList", "LongMethod")
@Suppress("LongParameterList", "LongMethod", "SpreadOperator")
@Composable
fun spectrumPlot(
modifier: Modifier,
Expand Down Expand Up @@ -706,7 +704,7 @@ class MeasurementScreen(
)
)
val splGradient =
Brush.horizontalGradient(*arrayOf(*spectrumColorRamp), startX = 0F, endX = size.width)
Brush.horizontalGradient(*spectrumColorRamp, startX = 0F, endX = size.width)
drawLine(
brush = splGradient,
start = Offset(maxYAxisWidth, barYOffset + barHeight / 2),
Expand Down

0 comments on commit 443a006

Please sign in to comment.