Skip to content

Commit

Permalink
Fix nav bar badge color
Browse files Browse the repository at this point in the history
  • Loading branch information
nonproto committed Nov 27, 2024
1 parent b922d28 commit 4f1b82a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,9 @@ open class MainActivity : BaseActivity<MainActivityBinding>() {
val hasQueue = downloading || downloadManager.queueState.value.isNotEmpty()

if (hasQueue) {
nav.getOrCreateBadge(R.id.nav_recents)
nav.getOrCreateBadge(R.id.nav_recents).apply {
backgroundColor = this@MainActivity.getResourceColor(R.attr.colorSecondary)
}
showDLQueueTutorial()
} else {
nav.removeBadge(R.id.nav_recents)
Expand Down

0 comments on commit 4f1b82a

Please sign in to comment.