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

Recurring events are not added #158

Closed
umazalakain opened this issue Jan 23, 2021 · 3 comments
Closed

Recurring events are not added #158

umazalakain opened this issue Jan 23, 2021 · 3 comments

Comments

@umazalakain
Copy link
Contributor

I built the latest version of Diary on NixOS (bit of an ordeal) to try adding events fro multiple calendar, which works well. However I am not sure whether it is as a consequence of this last change or if it was like this before too, but recurring events are not shown. I don't know if it's possible to ask the calendar provider to compute all the events for a particular day for us, or if it's the calendar app that does that, in which case it's probably not worth taking it any further.

@billthefarmer
Copy link
Owner

Looking at the calendar app, recurring events are set on the first instance of the event. So, if you pick that day in the Diary app, you should get the event, but only for that day because everything is ignored except the start time and title. I assume the calendar app fills in recurring events.

@umazalakain
Copy link
Contributor Author

I think it might be possible to get the calendar provider to compute the occurrences by using the read only CalendarContract.Instances instead of CalendarContract.Events?
https://developer.android.com/reference/android/provider/CalendarContract.Instances

@umazalakain
Copy link
Contributor Author

Working on a PR, but it might take me a bit, I'm new to Android development

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