mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Don't use .hasQueue(), check queueSize directly
This commit is contained in:
parent
3787845893
commit
f240fe0dd4
1 changed files with 1 additions and 1 deletions
|
@ -1517,7 +1517,7 @@ open class MainActivity : BaseActivity<MainActivityBinding>() {
|
||||||
|
|
||||||
private fun downloadStatusChanged(downloading: Boolean, queueSize: Int) {
|
private fun downloadStatusChanged(downloading: Boolean, queueSize: Int) {
|
||||||
lifecycleScope.launchUI {
|
lifecycleScope.launchUI {
|
||||||
val hasQueue = downloading || downloadManager.hasQueue()
|
val hasQueue = downloading || queueSize > 0
|
||||||
if (hasQueue) {
|
if (hasQueue) {
|
||||||
val badge = nav.getOrCreateBadge(R.id.nav_recents)
|
val badge = nav.getOrCreateBadge(R.id.nav_recents)
|
||||||
badge.updateQueueSize(queueSize)
|
badge.updateQueueSize(queueSize)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue