Commit 7eb54d48 authored by Eugene Shapovalov's avatar Eugene Shapovalov 💬

Fix bug with displaying assigned badges when count = 0.

parent 9809e778
......@@ -95,9 +95,15 @@ class MainFragment : BaseFragment(), MainView {
override fun setAssignedNotifications(issueCount: Int, mergeRequestCount: Int, todoCount: Int) {
with(bottomBar) {
setNotification(buildBottomBarNotification(R.color.fruit_salad, issueCount), 1)
setNotification(buildBottomBarNotification(R.color.brandy_punch, mergeRequestCount), 2)
setNotification(buildBottomBarNotification(R.color.mariner, todoCount), 3)
if (issueCount > 0) {
setNotification(buildBottomBarNotification(R.color.fruit_salad, issueCount), 1)
}
if (mergeRequestCount > 0) {
setNotification(buildBottomBarNotification(R.color.brandy_punch, mergeRequestCount), 2)
}
if (todoCount > 0) {
setNotification(buildBottomBarNotification(R.color.mariner, todoCount), 3)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment