From 6d7c4b40f69ce44573e4e07ba37f92486a2f77be Mon Sep 17 00:00:00 2001 From: aminecmi Date: Wed, 9 Jan 2019 21:42:13 +0100 Subject: [PATCH] Wip fixing the badges reloading when reading all the items. --- .../main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt b/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt index 3dfb1bc..f8d72b9 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt @@ -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()