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

Setting Date not working properly on calendar view #41

Closed
udaysrinath opened this issue Apr 21, 2017 · 6 comments
Closed

Setting Date not working properly on calendar view #41

udaysrinath opened this issue Apr 21, 2017 · 6 comments
Assignees

Comments

@udaysrinath
Copy link
Collaborator

I have a button which when pressed causes the calendarView to go to the current date and returns the selected date. There is no method on the calendarView which allows me to do this currently.

Here is what I did:
Navigate a few months out and then the jumpToToday button is pressed, executing the code below:

  public void setCurrentDateForCalendarView() {
     calendarView.update(Calendar.getInstance(Locale.getDefault()));
     calendarView.invalidate();
    }

Issue : Calling the update on the calendarViewdoes not update the currentMonthIndex (It needs to set to 0).

Am I missing something? It seems there is no way to set a specified date and jump to the specific month, day on the calendar view.

@udaysrinath
Copy link
Collaborator Author

@JonatanSalas Thoughts?

@udaysrinath
Copy link
Collaborator Author

@JonatanSalas Did you get a chance to get a fix in for this?

@JonatanSalas
Copy link
Member

@udaysrinath I'm full of work, and not able to take some time for reviewing it. As soon as I can I will put my efforts to solve this issue.

@JonatanSalas
Copy link
Member

@udaysrinath also, if you have identified the cause, I accept a PR to solve this issue.

@udaysrinath
Copy link
Collaborator Author

Thanks @JonatanSalas , lemme check if I get around to getting a PR out for it.

@JonatanSalas
Copy link
Member

@udaysrinath closing!

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

No branches or pull requests

2 participants