Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnDateSetListener does not pass Calendar corrected for minute interval #9

Closed
nickdaugherty opened this issue May 15, 2012 · 1 comment

Comments

@nickdaugherty
Copy link

When implementing an OnDateSetListener for a DateSlider, the Calendar object that is passed to the listener's onDateSet method is not adjusted to the configured MINUTEINTERVAL. Instead, the normal date is returned, so you end up getting dates in between the interval, such as 5:10 when the MINUTEINTERVAL is set to 15.

Expected behavior is the Calendar returned matches the date chosen by the user, without having to do a

selectedDate.set(Calendar.MINUTE, selectedDate.get(Calendar.MINUTE)/TimeLabeler.MINUTEINTERVAL*TimeLabeler.MINUTEINTERVAL);

to correct it.

@bendemboski
Copy link
Owner

This is a duplicate of #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants