flavienlaurent / datetimepicker

DateTimePicker is a library which contains the beautiful DatePicker that can be seen in the new Google Agenda app.
1.83k stars 578 forks source link

Callback lost on rotation #105

Open JRWilding opened 9 years ago

JRWilding commented 9 years ago

Hi, the callbacks mechanism is flawed as it does not take into account the Fragment being recreated due to a configuration change (e.g. rotation).

It would be better to enforce the Activity or parent Fragment to implement the callback interface and send back the tag of the Fragment rather than (or as well as) the View itself.