diff --git a/samples/user-interface/live-updates/src/main/java/com/example/platform/ui/live_updates/SnackbarNotificationManager.kt b/samples/user-interface/live-updates/src/main/java/com/example/platform/ui/live_updates/SnackbarNotificationManager.kt index 357a0168..8237b8dc 100644 --- a/samples/user-interface/live-updates/src/main/java/com/example/platform/ui/live_updates/SnackbarNotificationManager.kt +++ b/samples/user-interface/live-updates/src/main/java/com/example/platform/ui/live_updates/SnackbarNotificationManager.kt @@ -142,8 +142,18 @@ object SnackbarNotificationManager { @RequiresApi(Build.VERSION_CODES.BAKLAVA) fun buildBaseProgressStyle(orderState: OrderState): ProgressStyle { - val pointColor = Color.valueOf(236f, 183f, 255f, 1f).toArgb() - val segmentColor = Color.valueOf(134f, 247f, 250f, 1f).toArgb() + val pointColor = Color.valueOf( + 236f / 255f, // Normalize red value to be between 0.0 and 1.0 + 183f / 255f, // Normalize green value to be between 0.0 and 1.0 + 255f / 255f, // Normalize blue value to be between 0.0 and 1.0 + 1f, + ).toArgb() + val segmentColor = Color.valueOf( + 134f / 255f, // Normalize red value to be between 0.0 and 1.0 + 247f / 255f, // Normalize green value to be between 0.0 and 1.0 + 250f / 255f, // Normalize blue value to be between 0.0 and 1.0 + 1f, + ).toArgb() var progressStyle = NotificationCompat.ProgressStyle() .setProgressPoints( listOf(