forked from recloudstream/cloudstream
fixed flags
This commit is contained in:
parent
f85d32a308
commit
99fa40eaeb
3 changed files with 3 additions and 5 deletions
|
@ -36,7 +36,7 @@ android {
|
|||
targetSdkVersion 30
|
||||
|
||||
versionCode 45
|
||||
versionName "2.9.16"
|
||||
versionName "2.9.17"
|
||||
|
||||
resValue "string", "app_version",
|
||||
"${defaultConfig.versionName}${versionNameSuffix ?: ""}"
|
||||
|
|
|
@ -229,9 +229,8 @@ class HomeFragment : Fragment() {
|
|||
currentValidApis.addAll(0, validAPIs.subList(0, 2))
|
||||
|
||||
val names = currentValidApis.map { if(isMultiLang) "${getFlagFromIso(it.lang)?.plus(" ") ?: ""}${it.name}" else it.name }
|
||||
val index = names.indexOf(currentApiName)
|
||||
val index = currentValidApis.map { it.name }.indexOf(currentApiName)
|
||||
listView?.setItemChecked(index, true)
|
||||
arrayAdapter.notifyDataSetChanged()
|
||||
arrayAdapter.addAll(names)
|
||||
arrayAdapter.notifyDataSetChanged()
|
||||
}
|
||||
|
|
|
@ -230,8 +230,7 @@ class SearchFragment : Fragment() {
|
|||
it.lang
|
||||
)?.plus(" ") ?: ""
|
||||
}${it.name}" else it.name }
|
||||
|
||||
for ((index, api) in names.withIndex()) {
|
||||
for ((index, api) in currentValidApis.map { it.name }.withIndex()) {
|
||||
listView?.setItemChecked(index, currentSelectedApis.contains(api))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue