Skip to content

Commit 3a795c2

Browse files
authored
Merge branch 'android:main' into main
2 parents 7523623 + d103fd9 commit 3a795c2

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

samples/user-interface/live-updates/src/main/java/com/example/platform/ui/live_updates/SnackbarNotificationManager.kt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,18 @@ object SnackbarNotificationManager {
142142

143143
@RequiresApi(Build.VERSION_CODES.BAKLAVA)
144144
fun buildBaseProgressStyle(orderState: OrderState): ProgressStyle {
145-
val pointColor = Color.valueOf(236f, 183f, 255f, 1f).toArgb()
146-
val segmentColor = Color.valueOf(134f, 247f, 250f, 1f).toArgb()
145+
val pointColor = Color.valueOf(
146+
236f / 255f, // Normalize red value to be between 0.0 and 1.0
147+
183f / 255f, // Normalize green value to be between 0.0 and 1.0
148+
255f / 255f, // Normalize blue value to be between 0.0 and 1.0
149+
1f,
150+
).toArgb()
151+
val segmentColor = Color.valueOf(
152+
134f / 255f, // Normalize red value to be between 0.0 and 1.0
153+
247f / 255f, // Normalize green value to be between 0.0 and 1.0
154+
250f / 255f, // Normalize blue value to be between 0.0 and 1.0
155+
1f,
156+
).toArgb()
147157
var progressStyle = NotificationCompat.ProgressStyle()
148158
.setProgressPoints(
149159
listOf(

0 commit comments

Comments
 (0)