Wip fixing the badges reloading when reading all the items.

This commit is contained in:
aminecmi 2019-01-09 21:42:13 +01:00
parent f538ed39fc
commit 6d7c4b40f6

View File

@ -1353,6 +1353,10 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener {
(it.key to ((tagsBadge[it.key] ?: it.value) - it.value))
}.toMap()
tagsBadge = tagsBadge.map {
(it.key to 0)
}.toMap()
reloadTagsBadges()
getElementsAccordingToTab()