mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 04:10:45 +01:00
disable quick filtering if only 1 event type is available
This commit is contained in:
parent
fa3215f639
commit
27e917c807
@ -82,6 +82,10 @@ class EventsHelper(val context: Context) {
|
||||
}
|
||||
|
||||
eventTypesDB.deleteEventTypes(typesToDelete)
|
||||
|
||||
if (getEventTypesSync().size == 1) {
|
||||
config.quickFilterEventTypes = HashSet()
|
||||
}
|
||||
}
|
||||
|
||||
fun insertEvent(event: Event, addToCalDAV: Boolean, showToasts: Boolean, callback: ((id: Long) -> Unit)? = null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user