You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: The listener is cleared after rotatinf the device.
(Case 1) Catalog app:
Open a DatePicker.
Select any date.
Press Cancel button or OK button. -> The Snackbar is shown.
(Case 2) Catalog app:
Open a DatePicker.
Rotate the device.
Select any date.
Press Cancel button or OK button. -> The Snackbar is NOT shown.
Expected behavior: The listener is not cleared after rotatinf the device. I think it is difficult to workaround this issue because MaterialDatePicker is final. Refine the API and/or the docs.
manabu-nakamura
changed the title
[Catalog][DatePicker] listener is cleared after rotating device
[Catalog][DatePicker][TimePicker] listener is cleared after rotating device
Dec 23, 2024
Description: The listener is cleared after rotatinf the device.
(Case 1) Catalog app:
(Case 2) Catalog app:
Expected behavior: The listener is not cleared after rotatinf the device. I think it is difficult to workaround this issue because MaterialDatePicker is final. Refine the API and/or the docs.
Source code: https://github.com/material-components/material-components-android/blob/master/catalog/java/io/material/catalog/datepicker/DatePickerMainDemoFragment.java#L164-L166
Minimal sample app repro: https://github.com/material-components/material-components-android/tree/master/catalog
Android API version: 35
Material Library version: 1.13.0-alpha09
Device: Emulator 35.2.10
The text was updated successfully, but these errors were encountered: