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 |         targetSdkVersion 30 | ||||||
| 
 | 
 | ||||||
|         versionCode 45 |         versionCode 45 | ||||||
|         versionName "2.9.16" |         versionName "2.9.17" | ||||||
| 
 | 
 | ||||||
|         resValue "string", "app_version", |         resValue "string", "app_version", | ||||||
|                 "${defaultConfig.versionName}${versionNameSuffix ?: ""}" |                 "${defaultConfig.versionName}${versionNameSuffix ?: ""}" | ||||||
|  |  | ||||||
|  | @ -229,9 +229,8 @@ class HomeFragment : Fragment() { | ||||||
|                     currentValidApis.addAll(0, validAPIs.subList(0, 2)) |                     currentValidApis.addAll(0, validAPIs.subList(0, 2)) | ||||||
| 
 | 
 | ||||||
|                     val names = currentValidApis.map { if(isMultiLang) "${getFlagFromIso(it.lang)?.plus(" ") ?: ""}${it.name}" else it.name } |                     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) |                     listView?.setItemChecked(index, true) | ||||||
|                     arrayAdapter.notifyDataSetChanged() |  | ||||||
|                     arrayAdapter.addAll(names) |                     arrayAdapter.addAll(names) | ||||||
|                     arrayAdapter.notifyDataSetChanged() |                     arrayAdapter.notifyDataSetChanged() | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
|  | @ -230,8 +230,7 @@ class SearchFragment : Fragment() { | ||||||
|                                 it.lang |                                 it.lang | ||||||
|                             )?.plus(" ") ?: "" |                             )?.plus(" ") ?: "" | ||||||
|                         }${it.name}" else it.name } |                         }${it.name}" else it.name } | ||||||
| 
 |                         for ((index, api) in currentValidApis.map { it.name }.withIndex()) { | ||||||
|                         for ((index, api) in names.withIndex()) { |  | ||||||
|                             listView?.setItemChecked(index, currentSelectedApis.contains(api)) |                             listView?.setItemChecked(index, currentSelectedApis.contains(api)) | ||||||
|                         } |                         } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue