Fixed
Status Update
Comments
ma...@google.com <ma...@google.com>
sg...@google.com <sg...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
Author: Shalom Gibly <
Link:
Date pickers fix for setting a displayed month
Expand for full commit details
Date pickers fix for setting a displayed month
This fix ensures that the DatePicker and the DateRangePicker will update
the displayed month when it's directly set throught the state's
`displayedMonthMillis`.
Fixes: 333414302
Test: DatePickerTest and DateRangePickerTest
Relnote: "The DatePicker and DateRangePicker now correctly update the
displayed month when set via their state's displayedMonthMillis."
Change-Id: If9e47133cb89ea689612133e10a31bfa20f45fd6
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: bc1fb04c278c3d9e56ae121f392f2b37d3eb69ed
Date: Fri Oct 04 15:41:09 2024
na...@google.com <na...@google.com> #3
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> #4
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:1.2.1
Jetpack Compose component(s) used: DateRangePicker
Android Studio Build: AI-232.10300.40.2321.11567975
Kotlin version: 1.9.22
Steps to Reproduce or Code Sample to Reproduce:
1.Show date range picker
2.Update selected month on the state (displayedMonthMillis)
3.Nothing happens.
Same happens if initialDisplayedMonthMillis is set but the correct month is not displayed. I've checked on DatePicker.kt _displayedMonth.value is correctly set to right month but nothing happen on the ui.
Unless I misunderstood the purpose of this displayedMonthMillis
Example code from base project (only the MainActivity )