mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
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 {
|
||||
showQuickFilterPicker()
|
||||
}
|
||||
|
||||
eventsHelper.getEventTypes(this, false) {
|
||||
if (it.size < 2) {
|
||||
settings_manage_quick_filter_event_types_holder.beGone()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupHourFormat() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user