show the event type quick filter in the settings only if more are available
This commit is contained in:
parent
c57148a1bb
commit
d966b325f3
|
@ -170,6 +170,12 @@ class SettingsActivity : SimpleActivity() {
|
||||||
settings_manage_quick_filter_event_types_holder.setOnClickListener {
|
settings_manage_quick_filter_event_types_holder.setOnClickListener {
|
||||||
showQuickFilterPicker()
|
showQuickFilterPicker()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
eventsHelper.getEventTypes(this, false) {
|
||||||
|
if (it.size < 2) {
|
||||||
|
settings_manage_quick_filter_event_types_holder.beGone()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupHourFormat() {
|
private fun setupHourFormat() {
|
||||||
|
|
Loading…
Reference in New Issue