Set notification badge color to colorPrimary

This commit is contained in:
Bnyro 2023-01-04 19:35:37 +01:00
parent 2db5852459
commit c04dc67140

View File

@ -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)
}
}
}