Fix issues detected by Paparazzi

This commit is contained in:
Benoit Marty 2026-01-26 18:23:32 +01:00 committed by Benoit Marty
parent 8220e4bae0
commit ba70938667
3 changed files with 13 additions and 4 deletions

View file

@ -32,7 +32,12 @@ open class DeveloperSettingsStateProvider : PreviewParameterProvider<DeveloperSe
),
aDeveloperSettingsState(
isEnterpriseBuild = true,
showColorPicker = true,
// Disable the color picker for now, Paparazzi is failing with:
// java.lang.IllegalArgumentException: Cannot round NaN value.
// at kotlin.math.MathKt__MathJVMKt.roundToInt(MathJVM.kt:1210)
// at io.mhssn.colorpicker.ext.ColorExtKt.lighten(ColorExt.kt:86)
// at io.mhssn.colorpicker.pickers.ClassicColorPickerKt$ClassicColorPicker$1$1.invokeSuspend(ClassicColorPicker.kt:53)
showColorPicker = false,
),
)
}