Closed
Description
Description: The listener is cleared after rotatinf the device (#1688).
DatePicker:
(Case 1) Catalog app:
(Case 2) Catalog app:
- Open a DatePicker.
- Rotate the device.
- Select any date.
- Press Cancel button or OK button. -> The Snackbar is NOT shown.
TimePicker:
#4500
Expected behavior: The listener is not cleared after rotatinf the device. I think it is difficult to workaround this issue. Refine the API and/or the docs.
MaterialDatePicker<?> picker = builder.build();
addSnackBarListeners(picker);
picker.show(getChildFragmentManager(), picker.toString());
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