From a0aead6491b4261b2711407e5c1d48f06f3c637f Mon Sep 17 00:00:00 2001 From: aminecmi Date: Sun, 13 Jan 2019 15:58:25 +0100 Subject: [PATCH] Closes #271. --- app/build.gradle | 2 +- .../apps/amine/bou/readerforselfoss/HomeActivity.kt | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index b4bcb1b..594df95 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -112,7 +112,7 @@ dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2' //multidex - implementation 'androidx.multidex:multidex:2.0.0' + implementation 'androidx.multidex:multidex:2.0.1' // About implementation('com.mikepenz:aboutlibraries:6.2.0@aar') { 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 1da4bb6..d2e267b 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt @@ -1352,16 +1352,7 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener { ).show() tabNewBadge.removeBadge() - - tagsBadge = itemsByTag.map { - (it.key to ((tagsBadge[it.key] ?: it.value) - it.value)) - }.toMap() - - tagsBadge = tagsBadge.map { - (it.key to 0) - }.toMap() - - reloadTagsBadges() + handleDrawerItems() getElementsAccordingToTab() } else {