Update dependency com.pinterest.ktlint:ktlint-cli to v1.8.0 (#1786)

* Update dependency com.pinterest.ktlint:ktlint-cli to v1.8.0

* Format

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Syer10 <syer10@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2025-12-06 12:37:19 -05:00
committed by GitHub
parent 949829ae6b
commit 83c94c044d
37 changed files with 524 additions and 143 deletions

View File

@@ -108,7 +108,7 @@ object MangaRepository {
// Efficiently get the name of the primary filter item
val specificFilterName =
when (criteria.primaryFilter) {
PrimaryFilterType.SOURCE ->
PrimaryFilterType.SOURCE -> {
criteria.sourceId?.let {
SourceTable
.select(SourceTable.name)
@@ -116,7 +116,9 @@ object MangaRepository {
.firstOrNull()
?.get(SourceTable.name)
}
PrimaryFilterType.CATEGORY ->
}
PrimaryFilterType.CATEGORY -> {
criteria.categoryId?.let {
CategoryTable
.select(CategoryTable.name)
@@ -124,10 +126,25 @@ object MangaRepository {
.firstOrNull()
?.get(CategoryTable.name)
}
PrimaryFilterType.GENRE -> criteria.genre
PrimaryFilterType.STATUS -> criteria.statusId.toString() // Controller will map this to a localized string
PrimaryFilterType.LANGUAGE -> criteria.langCode // Controller will map this to a display name
else -> null
}
PrimaryFilterType.GENRE -> {
criteria.genre
}
// Controller will map this to a localized string
PrimaryFilterType.STATUS -> {
criteria.statusId.toString()
}
// Controller will map this to a display name
PrimaryFilterType.LANGUAGE -> {
criteria.langCode
}
else -> {
null
}
}
applyMangaLibrarySortAndFilter(query, sort, filter)