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

enhancement request : open calendar instead of appointment #151

Open
scotttocs opened this issue Nov 8, 2024 · 5 comments
Open

enhancement request : open calendar instead of appointment #151

scotttocs opened this issue Nov 8, 2024 · 5 comments

Comments

@scotttocs
Copy link

hello,

I would like to be able to configure agenda to open the calendar an event is part of rather than the event itself

@yvolk
Copy link
Member

yvolk commented Nov 11, 2024

Hi @scotttocs, please look at this related issue: #85
In short: looks like no way at the Widget's side to do that
?!

@scotttocs
Copy link
Author

scotttocs commented Nov 11, 2024 via email

@scotttocs
Copy link
Author

https://developer.android.com/identity/providers/calendar-provider#intent-view implies that you can open a calendar to a date and not an event, but I've not tried it yet, or run anything in a debugger to see the actual calls

@yvolk
Copy link
Member

yvolk commented Dec 1, 2024

Oh, didn't see this before, looks like some new feature. We could try to use it when clicking on a Day Header?!
Thank you for the link. Calendar API was too stable for many years :-)

@yvolk
Copy link
Member

yvolk commented Dec 15, 2024

Hello @scotttocs It appears that this is already implemented in ToDo Agenda years ago :-)
When you click on a Day Header, a Calendar app that date is opened,

override fun newViewEntryIntent(eventEntry: WidgetEntry<*>): Intent {
val entry = eventEntry as DayHeader
return CalendarIntentUtil.newOpenCalendarAtDayIntent(entry.entryDate)

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