mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
enable quick event type filter at adding the second event type
This commit is contained in:
@ -58,6 +58,13 @@ class EventsHelper(val context: Context) {
|
||||
|
||||
if (config.quickFilterEventTypes.isNotEmpty()) {
|
||||
config.addQuickFilterEventType(newId.toString())
|
||||
} else {
|
||||
val eventTypes = getEventTypesSync()
|
||||
if (eventTypes.size == 2) {
|
||||
eventTypes.forEach {
|
||||
config.addQuickFilterEventType(it.id.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return newId
|
||||
|
Reference in New Issue
Block a user