Merge pull request #2586 from Bnyro/master

Set notification badge color to `colorPrimary`
This commit is contained in:
Bnyro 2023-01-04 19:36:01 +01:00 committed by GitHub
commit 66aec3ed6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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