SingleDateAndTimePicker
SingleDateAndTimePicker copied to clipboard
Can't parse default displayed time during no action
Scenario:
- I used a dynamic minimum and maximum date/time for the picker
- setting up the
.defaultDate(minDate)so that the picker is showing the dynamic minimum date - when I tried to get the displayed date by using
picker.date.timeat this point date doesn't matches with the minimum time I have set before and getting empty string, cz.addOnDateChangedListenerwasn't called, from where I get thediplayed
Present situation
I have solved it manually. But I hope it should be into the library.
I would like to add another enhancement as well which is, reduce the items into individual picker according to it's actual count of picker.setStepMinutes(30). (i.e. I used 30 as steps and I would expect 2 items only into the minute list, I wouldn't expect ["00", "30"] more than 2 into the list. Assume, step = 15, then it should be = ["00","15","30","${c.add(Calender.HOUR, 1)}"] or something like that)
That's all, Thanks