Commit 7d90b7b3 authored by Konstantin Tskhovrebov's avatar Konstantin Tskhovrebov 🤖

Merge branch 'fix/assigned_badge_displaying' into 'develop'

Fix bug with displaying assigned badges when count = 0.

See merge request !198
parents 9809e778 94d8f1d8
......@@ -101,11 +101,16 @@ class MainFragment : BaseFragment(), MainView {
}
}
private fun buildBottomBarNotification(@ColorRes backgroundColor: Int, count: Int) =
AHNotification.Builder()
.setBackgroundColor(ContextCompat.getColor(requireContext(), backgroundColor))
.setText(count.toString())
.build()
private fun buildBottomBarNotification(@ColorRes backgroundColor: Int, count: Int): AHNotification {
return if (count > 0) {
AHNotification.Builder()
.setBackgroundColor(ContextCompat.getColor(requireContext(), backgroundColor))
.setText(count.toString())
.build()
} else {
AHNotification()
}
}
companion object {
private val eventsTab = Screens.MyEvents
......
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