feat: per-calendar export selector
Tapping Export with more than one exportable calendar now opens a picker to choose which local calendars to include (all selected by default); a single calendar exports straight through as before. Threads an optional calendarIds filter through exportEvents/exportableEvents (null = all eligible), so the auto-backup path is unaffected. The backup section is now gated on there being at least one exportable (non-managed) calendar. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -59,7 +59,7 @@ internal class FakeCalendarDataSource : CalendarDataSource {
|
||||
override fun eventDetail(eventId: Long): EventDetail? = eventDetailResult(eventId)
|
||||
override fun eventColorPalette(calendarId: Long): List<EventColorOption> =
|
||||
eventColorPaletteResult(calendarId)
|
||||
override fun exportableEvents(): List<IcsEvent> = exportableEventsResult
|
||||
override fun exportableEvents(calendarIds: Set<Long>?): List<IcsEvent> = exportableEventsResult
|
||||
|
||||
override fun existingUids(calendarId: Long): Set<String> = existingUidsResult
|
||||
|
||||
|
||||
Reference in New Issue
Block a user