mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +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()
|
lastSeenVideoId == it.url?.toID()
|
||||||
} ?: return@observe
|
} ?: return@observe
|
||||||
if (lastSeenVideoIndex < 1) return@observe
|
if (lastSeenVideoIndex < 1) return@observe
|
||||||
binding.bottomNav.getOrCreateBadge(R.id.subscriptionsFragment).number =
|
binding.bottomNav.getOrCreateBadge(R.id.subscriptionsFragment).apply {
|
||||||
lastSeenVideoIndex
|
number = lastSeenVideoIndex
|
||||||
|
backgroundColor = ThemeHelper.getThemeColor(this@MainActivity, R.attr.colorPrimary)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user