SingleDateAndTimePicker icon indicating copy to clipboard operation
SingleDateAndTimePicker copied to clipboard

Can't parse default displayed time during no action

Open sam43 opened this issue 6 years ago • 0 comments

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.time at this point date doesn't matches with the minimum time I have set before and getting empty string, cz .addOnDateChangedListener wasn't called, from where I get the diplayed

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

sam43 avatar Sep 19 '19 07:09 sam43