Fixed
Status Update
Comments
sg...@google.com <sg...@google.com>
sg...@google.com <sg...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit e7be6694bd0db22dbc5e6bed0d318bdca4b9d41a
Author: Shalom Gibly <sgibly@google.com>
Date: Wed Sep 27 04:58:31 2023
Fix a datepicker crash when navigating months fast
Added a try-catch guard to prevent a crash when clicking the navigation
arrows fast and reaching the end of the provided year range.
Opted for a try-catch instead of checking the LasyListState
"isScrollInProgress" for the buttons enablement. Using the in-progress
will disable the buttons until the transition settles, which makes it
hard to navigate by quickly tapping the buttons.
Bug: 290954897
Bug: 297002119
Bug: 290954897
Test: Manual
Relnote: "Fix a DatePicker crash when quickly clicking the navigation
arrow buttons when the displayed month is at the edge of the allowed
range of years."
Change-Id: I46f360883dc57d677a545863ff2d913903861928
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/DatePicker.kt
https://android-review.googlesource.com/2762529
Branch: androidx-main
commit e7be6694bd0db22dbc5e6bed0d318bdca4b9d41a
Author: Shalom Gibly <sgibly@google.com>
Date: Wed Sep 27 04:58:31 2023
Fix a datepicker crash when navigating months fast
Added a try-catch guard to prevent a crash when clicking the navigation
arrows fast and reaching the end of the provided year range.
Opted for a try-catch instead of checking the LasyListState
"isScrollInProgress" for the buttons enablement. Using the in-progress
will disable the buttons until the transition settles, which makes it
hard to navigate by quickly tapping the buttons.
Bug: 290954897
Bug: 297002119
Bug: 290954897
Test: Manual
Relnote: "Fix a DatePicker crash when quickly clicking the navigation
arrow buttons when the displayed month is at the edge of the allowed
range of years."
Change-Id: I46f360883dc57d677a545863ff2d913903861928
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/DatePicker.kt
pr...@google.com <pr...@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.2.0-alpha10
androidx.compose.material3:material3-android:1.2.0-alpha10
androidx.compose.material3:material3-desktop:1.2.0-alpha10
Description
Jetpack Compose version: BoM 2023.06.01
Jetpack Compose component used: Material 3
Android Studio Build: Android Studio Giraffe | 2022.3.1 Canary 11 Build #AI-223.8836.35.2231.9848316, built on March 29, 2023
Kotlin version: 1.8.22
Retro steps:
SampleCode:
Stack trace: