mirror of
				https://github.com/recloudstream/cloudstream.git
				synced 2024-08-15 01:53:11 +00:00 
			
		
		
		
	Fix selecting homepage
This commit is contained in:
		
							parent
							
								
									9c5f2ef2f1
								
							
						
					
					
						commit
						6f60298fc9
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		|  | @ -272,12 +272,13 @@ class HomeViewModel : ViewModel() { | |||
|             if (!forceReload && api?.let { expandable[it.name]?.list?.list?.isNotEmpty() } == true) { | ||||
|                 return@launchSafe | ||||
|             } | ||||
|             // If the plugin isn't loaded yet. (Does not set the key) | ||||
|             if (api == null) { | ||||
|                 loadAndCancel(noneApi) | ||||
|             } else if (preferredApiName == noneApi.name) { | ||||
| 
 | ||||
|             if (preferredApiName == noneApi.name) { | ||||
|                 setKey(USER_SELECTED_HOMEPAGE_API, noneApi.name) | ||||
|                 loadAndCancel(noneApi) | ||||
|             // If the plugin isn't loaded yet. (Does not set the key) | ||||
|             } else if (api == null) { | ||||
|                 loadAndCancel(noneApi) | ||||
|             } else if (preferredApiName == randomApi.name) { | ||||
|                 val validAPIs = context?.filterProviderByPreferredMedia() | ||||
|                 if (validAPIs.isNullOrEmpty()) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue