mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 15:32:01 +00:00
ref: update selectedHeroSourceCount to filter by catalog keys
This commit is contained in:
parent
629ec5a7f4
commit
632f5571e1
2 changed files with 6 additions and 4 deletions
|
|
@ -346,9 +346,11 @@ object HomeCatalogSettingsRepository {
|
||||||
HomeRepository.applyCurrentSettings()
|
HomeRepository.applyCurrentSettings()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun selectedHeroSourceCount(excludingKey: String? = null): Int =
|
private fun selectedHeroSourceCount(excludingKey: String? = null): Int {
|
||||||
preferences.count { (itemKey, preference) ->
|
val catalogKeys = definitions.mapTo(mutableSetOf()) { it.key }
|
||||||
itemKey != excludingKey && preference.heroSourceEnabled
|
return preferences.count { (itemKey, preference) ->
|
||||||
|
itemKey != excludingKey && itemKey in catalogKeys && preference.heroSourceEnabled
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun move(
|
private fun move(
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
[versions]
|
[versions]
|
||||||
agp = "8.11.2"
|
agp = "8.13.2"
|
||||||
android-compileSdk = "36"
|
android-compileSdk = "36"
|
||||||
android-minSdk = "24"
|
android-minSdk = "24"
|
||||||
android-targetSdk = "36"
|
android-targetSdk = "36"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue