mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 04:10:45 +01:00
enable quick event type filter at adding the second event type
This commit is contained in:
parent
e4915ccb61
commit
662b0fa982
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user