From 389ff605d9d8be008dd78c307344dc6565ca8f52 Mon Sep 17 00:00:00 2001 From: Secozzi Date: Tue, 14 May 2024 08:24:12 +0200 Subject: [PATCH] Revert 4fe7681 --- .../kanade/presentation/browse/anime/AnimeExtensionsScreen.kt | 3 +-- .../kanade/presentation/browse/manga/MangaExtensionsScreen.kt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/browse/anime/AnimeExtensionsScreen.kt b/app/src/main/java/eu/kanade/presentation/browse/anime/AnimeExtensionsScreen.kt index 4ea5313d6..d4d48b2e4 100644 --- a/app/src/main/java/eu/kanade/presentation/browse/anime/AnimeExtensionsScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/browse/anime/AnimeExtensionsScreen.kt @@ -40,7 +40,6 @@ import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import cafe.adriel.voyager.navigator.LocalNavigator import cafe.adriel.voyager.navigator.currentOrThrow -import eu.kanade.core.util.fastDistinctBy import eu.kanade.presentation.browse.BaseBrowseItem import eu.kanade.presentation.browse.anime.components.AnimeExtensionIcon import eu.kanade.presentation.browse.manga.ExtensionHeader @@ -200,7 +199,7 @@ private fun AnimeExtensionContent( } items( - items = items.fastDistinctBy { it.hashCode() }, + items = items, contentType = { "item" }, key = { item -> when (item.extension) { diff --git a/app/src/main/java/eu/kanade/presentation/browse/manga/MangaExtensionsScreen.kt b/app/src/main/java/eu/kanade/presentation/browse/manga/MangaExtensionsScreen.kt index 5113a4aa6..b7d3abfc7 100644 --- a/app/src/main/java/eu/kanade/presentation/browse/manga/MangaExtensionsScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/browse/manga/MangaExtensionsScreen.kt @@ -43,7 +43,6 @@ import androidx.compose.ui.unit.dp import cafe.adriel.voyager.navigator.LocalNavigator import cafe.adriel.voyager.navigator.currentOrThrow import dev.icerock.moko.resources.StringResource -import eu.kanade.core.util.fastDistinctBy import eu.kanade.presentation.browse.BaseBrowseItem import eu.kanade.presentation.browse.manga.components.MangaExtensionIcon import eu.kanade.presentation.components.WarningBanner @@ -202,7 +201,7 @@ private fun ExtensionContent( } items( - items = items.fastDistinctBy { it.hashCode() }, + items = items, contentType = { "item" }, key = { item -> when (item.extension) {