Update notifier paused state when starting downloads (fixes #3254)
(cherry picked from commit 0ef073669a1932c57d34c37653a74cd18e0cbf4c)
This commit is contained in:
parent
fb33bc1cfb
commit
ea2cabfb3c
@ -69,7 +69,7 @@ open class App : Application(), LifecycleObserver {
|
|||||||
ForceCloseActivity.closeApp(this)
|
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) {
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
|
||||||
Security.insertProviderAt(Conscrypt.newProvider(), 1)
|
Security.insertProviderAt(Conscrypt.newProvider(), 1)
|
||||||
}
|
}
|
||||||
|
@ -117,6 +117,8 @@ class Downloader(
|
|||||||
val pending = queue.filter { it.status != Download.DOWNLOADED }
|
val pending = queue.filter { it.status != Download.DOWNLOADED }
|
||||||
pending.forEach { if (it.status != Download.QUEUE) it.status = Download.QUEUE }
|
pending.forEach { if (it.status != Download.QUEUE) it.status = Download.QUEUE }
|
||||||
|
|
||||||
|
notifier.paused = false
|
||||||
|
|
||||||
downloadsRelay.call(pending)
|
downloadsRelay.call(pending)
|
||||||
return pending.isNotEmpty()
|
return pending.isNotEmpty()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user