Fixed
Status Update
Comments
ba...@gmail.com <ba...@gmail.com> #2
I have excatly the same problem. Did you find any workaround about this issue?
sg...@google.com <sg...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
Author: Shalom Gibly <
Link:
Fix a SelectableDates update for DatePickers
Expand for full commit details
Fix a SelectableDates update for DatePickers
Fix a bug where applying a new instance of `SelectableDates` does not
immedietly affect the DatePicker or the DateRangePicker enabled/disabled
visible dates or years.
Fixes: 290135807
Fixes: 339898760
Test: DatePickerTest and DateRangePickerTest
Relnote: "Fix a date-picker issue to update the UI when an updated
SelectableDates instance is applied."
Change-Id: Iad59a46ee1c6484c2dc2409c9cc135070aa94bc2
Files:
- M
compose/material3/material3/src/androidInstrumentedTest/kotlin/androidx/compose/material3/DatePickerTest.kt
- M
compose/material3/material3/src/androidInstrumentedTest/kotlin/androidx/compose/material3/DateRangePickerTest.kt
- M
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/DatePicker.kt
- M
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/DateRangePicker.kt
Hash: fdf1636bd682a0e45d5b1edfbd7228f37339ddc8
Date: Thu Sep 26 18:38:29 2024
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.compose.material3:material3:1.4.0-alpha02
androidx.compose.material3:material3-android:1.4.0-alpha02
androidx.compose.material3:material3-jvmstubs:1.4.0-alpha02
androidx.compose.material3:material3-linuxx64stubs:1.4.0-alpha02
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: compose.material3 1.3.0-alpha06
Material Library Version (M2, M3 or Both?): M3
Material Compose component used: compose.material3
Android Studio Build: Android Studio Jellyfish | 2023.3.1
Kotlin version: 1.9.23
The below sample code uses a button to switch between two
DateRangePickerState
s used by aDateRangePicker
. The states differ only by theirselectableDates
parameter where one state only allows previous dates to be selected, the other only allows future dates.Expected behavior is that the UI instantly updates according to the selectable dates when the button state parameter is changed (i.e. the button is pressed in the example).
Actual behavior is that only those months display the selectable dates correctly that are freshly scrolled into view. The dates of the months currently visible are only updated when scrolled out of view and back again into view.