mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 16:18:55 +01:00 
			
		
		
		
	DownloadController: Fix first active download status not updating (#8069)
This commit is contained in:
		@@ -75,7 +75,9 @@ class DownloadQueue(
 | 
			
		||||
        Observable.from(this).filter { download -> download.status == Download.State.DOWNLOADING }
 | 
			
		||||
 | 
			
		||||
    @Deprecated("Use getStatusAsFlow instead")
 | 
			
		||||
    fun getStatusObservable(): Observable<Download> = statusSubject.onBackpressureBuffer()
 | 
			
		||||
    fun getStatusObservable(): Observable<Download> = statusSubject
 | 
			
		||||
        .startWith(getActiveDownloads())
 | 
			
		||||
        .onBackpressureBuffer()
 | 
			
		||||
 | 
			
		||||
    fun getStatusAsFlow(): Flow<Download> = getStatusObservable().asFlow()
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user