Fixed
Status Update
Comments
sg...@google.com <sg...@google.com> #2
Checking with UX team they also want to update the Chip with gradient background as well. Currently specified with the gradient as compositeOver(MaterialTheme.color.surface.copy(0.75f)) for enabled - they want this to change to 1.0f.
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit b7674378db62c194c8a8b4fd496631f9a82d9113
Author: John Nichol <jnichol@google.com>
Date: Tue Jun 14 16:21:44 2022
Update the backgrounds behind Wear Chip gradients.
Wear Chips/ToggleChips with gradiant backgrounds are missing a solid background behind the gradient.
Bug: 235937657
RelNote: "We have added a background color (MaterialTheme.color.surface) behind Chip/ToggleChips that have gradient backgrounds in order to ensure that they are properly visible in the unlikely event that a light color is used behind them."
Test: ./gradlew :wear:compose:compose-material:connectedCheck --info --daemon
Change-Id: Ibe1a442812a48a6d39912b4bbf399a2f4b11ae5b
M wear/compose/compose-material/src/commonMain/kotlin/androidx/wear/compose/material/Chip.kt
M wear/compose/compose-material/src/commonMain/kotlin/androidx/wear/compose/material/ToggleChip.kt
https://android-review.googlesource.com/2125159
Branch: androidx-main
commit b7674378db62c194c8a8b4fd496631f9a82d9113
Author: John Nichol <jnichol@google.com>
Date: Tue Jun 14 16:21:44 2022
Update the backgrounds behind Wear Chip gradients.
Wear Chips/ToggleChips with gradiant backgrounds are missing a solid background behind the gradient.
Bug: 235937657
RelNote: "We have added a background color (MaterialTheme.color.surface) behind Chip/ToggleChips that have gradient backgrounds in order to ensure that they are properly visible in the unlikely event that a light color is used behind them."
Test: ./gradlew :wear:compose:compose-material:connectedCheck --info --daemon
Change-Id: Ibe1a442812a48a6d39912b4bbf399a2f4b11ae5b
M wear/compose/compose-material/src/commonMain/kotlin/androidx/wear/compose/material/Chip.kt
M wear/compose/compose-material/src/commonMain/kotlin/androidx/wear/compose/material/ToggleChip.kt
na...@google.com <na...@google.com> #4
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.wear.compose:compose-material:1.4.0-rc01
pr...@google.com <pr...@google.com> #5
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.compose.material3:material3:1.3.1
androidx.compose.material3:material3-android:1.3.1
androidx.compose.material3:material3-desktop:1.3.1
Description
Jetpack Compose version: BoM 2023.06.01, Material3 1.2.0-alpha03
Jetpack Compose component used: Material3
Steps to Reproduce or Code Sample to Reproduce:
where
startDate
(Long
) andendDate
(Long
) are a part of state and can change when date picker is open.startDate
andendDate
change their values in the background (in my case it's ViewModel that reloads the data and the new state is emitted) so that the new instance ofdateValidator
is created.This also happens for compose-material3 1.2.0-alpha03 and
SelectableDates
interface: