From b17ef8b6ff995e60fe21952ddc1475e186ccaf34 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Sat, 20 Jul 2024 12:27:20 +0300 Subject: [PATCH] Fix sources catalog --- .../org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt b/app/src/main/kotlin/org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt index 727479374..5b683fdf0 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt @@ -101,7 +101,7 @@ class MangaSourcesRepository @Inject constructor( skipNsfwSources = settings.isNsfwContentDisabled, sortOrder = sortOrder, ).run { - filterIsInstanceTo(ArrayList(size)) + mapNotNullTo(ArrayList(size)) { it.mangaSource as? MangaParserSource } } if (locale != null) { sources.retainAll { it.locale == locale }