mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Update notifier paused state when starting downloads (fixes #3254)
This commit is contained in:
		| @@ -49,7 +49,7 @@ open class App : Application(), LifecycleObserver { | ||||
|             ForceCloseActivity.closeApp(this) | ||||
|         } | ||||
|  | ||||
|         // TLS 1.3 support for Android 10 and below | ||||
|         // TLS 1.3 support for Android < 10 | ||||
|         if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) { | ||||
|             Security.insertProviderAt(Conscrypt.newProvider(), 1) | ||||
|         } | ||||
|   | ||||
| @@ -117,6 +117,8 @@ class Downloader( | ||||
|         val pending = queue.filter { it.status != Download.DOWNLOADED } | ||||
|         pending.forEach { if (it.status != Download.QUEUE) it.status = Download.QUEUE } | ||||
|  | ||||
|         notifier.paused = false | ||||
|  | ||||
|         downloadsRelay.call(pending) | ||||
|         return pending.isNotEmpty() | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user