show the event type quick filter in the settings only if more are available

This commit is contained in:
tibbi 2021-07-19 17:18:49 +02:00
parent c57148a1bb
commit d966b325f3
1 changed files with 6 additions and 0 deletions

View File

@ -170,6 +170,12 @@ class SettingsActivity : SimpleActivity() {
settings_manage_quick_filter_event_types_holder.setOnClickListener {
showQuickFilterPicker()
}
eventsHelper.getEventTypes(this, false) {
if (it.size < 2) {
settings_manage_quick_filter_event_types_holder.beGone()
}
}
}
private fun setupHourFormat() {