Merge branch 'main' of github.com:MM2-0/Kvaesitso
This commit is contained in:
commit
89cd56aafe
@ -17,9 +17,11 @@ data class SearchFilters(
|
||||
val events: Boolean = true,
|
||||
val tools: Boolean = true,
|
||||
) {
|
||||
private val categories = listOf(apps, websites, articles, places, files, shortcuts, contacts, events, tools)
|
||||
|
||||
val allCategoriesEnabled
|
||||
get() = apps && websites && articles && places && files && shortcuts && contacts && events && tools
|
||||
get() = categories.all { it }
|
||||
|
||||
val enabledCategories: Int
|
||||
get() = apps.toInt() + websites.toInt() + articles.toInt() + places.toInt() + files.toInt() + shortcuts.toInt() + contacts.toInt() + events.toInt() + tools.toInt()
|
||||
get() = categories.count { it }
|
||||
}
|
||||
|
||||
@ -777,4 +777,5 @@
|
||||
<item quantity="other">%1$s Benachrichtigungen</item>
|
||||
</plurals>
|
||||
<string name="weather_widget_no_provider">Es ist kein Wetterdienst ausgewählt oder der gewählte Dienst ist nicht verfügbar</string>
|
||||
<string name="apps_profile_private">Privater Bereich</string>
|
||||
</resources>
|
||||
@ -793,4 +793,5 @@
|
||||
</plurals>
|
||||
<string name="preference_search_bar_separate_work_profile">Отделить рабочие приложения</string>
|
||||
<string name="poi_category_car_wash">Мойка</string>
|
||||
<string name="apps_profile_private">Private space</string>
|
||||
</resources>
|
||||
Loading…
x
Reference in New Issue
Block a user