From 90452100a45a946cedf39f7ba3f2f2203cc2a7eb Mon Sep 17 00:00:00 2001 From: aminecmi Date: Mon, 12 Dec 2022 21:11:26 +0100 Subject: [PATCH] Fixes #108. --- .drone.yml | 2 +- .../apps/readerforselfossv2/android/HomeActivity.kt | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/.drone.yml b/.drone.yml index c1d14bd..0f97e3f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,7 @@ steps: - ./gradlew sonarqube -Dsonar.projectKey=RFS2 -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN - echo "---------------------------------------------------------" - echo "Building..." - - ./gradlew build + - ./gradlew build -x test - echo "---------------------------------------------------------" - echo "Testing..." - echo "---------------------------------------------------------" diff --git a/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/HomeActivity.kt b/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/HomeActivity.kt index 1169a16..b5e6399 100644 --- a/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/HomeActivity.kt +++ b/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/HomeActivity.kt @@ -31,7 +31,6 @@ import bou.amine.apps.readerforselfossv2.model.SelfossModel import bou.amine.apps.readerforselfossv2.repository.Repository import bou.amine.apps.readerforselfossv2.service.AppSettingsService import bou.amine.apps.readerforselfossv2.utils.ItemType -import bou.amine.apps.readerforselfossv2.utils.longHash import com.ashokvarma.bottomnavigation.BottomNavigationBar import com.ashokvarma.bottomnavigation.BottomNavigationItem import com.ashokvarma.bottomnavigation.TextBadgeItem @@ -66,8 +65,6 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar private var fromTabShortcut: Boolean = false - private lateinit var tagsBadge: Map - private val settingsLauncher = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { appSettingsService.refreshUserSettings() } @@ -156,15 +153,6 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar adapter.handleItemAtIndex(position) - val tagHashes = i.tags.map { it.longHash() } - tagsBadge = tagsBadge.map { - if (tagHashes.contains(it.key)) { - (it.key to (it.value - 1)) - } else { - (it.key to it.value) - } - }.toMap() - // Just load everythin if (items.size <= 0) { getElementsAccordingToTab() -- 2.34.1