mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
Merge pull request #2586 from Bnyro/master
Set notification badge color to `colorPrimary`
This commit is contained in:
commit
66aec3ed6f
@ -210,8 +210,10 @@ class MainActivity : BaseActivity() {
|
||||
lastSeenVideoId == it.url?.toID()
|
||||
} ?: return@observe
|
||||
if (lastSeenVideoIndex < 1) return@observe
|
||||
binding.bottomNav.getOrCreateBadge(R.id.subscriptionsFragment).number =
|
||||
lastSeenVideoIndex
|
||||
binding.bottomNav.getOrCreateBadge(R.id.subscriptionsFragment).apply {
|
||||
number = lastSeenVideoIndex
|
||||
backgroundColor = ThemeHelper.getThemeColor(this@MainActivity, R.attr.colorPrimary)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user