mirror of
				https://github.com/recloudstream/cloudstream.git
				synced 2024-08-15 01:53:11 +00:00 
			
		
		
		
	fixed flags
This commit is contained in:
		
							parent
							
								
									f85d32a308
								
							
						
					
					
						commit
						99fa40eaeb
					
				
					 3 changed files with 3 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue