1
0
mirror of https://github.com/mihonapp/mihon.git synced 2025-03-24 13:29:53 +01:00

Compare commits

..

No commits in common. "48166b9b52836f225273651b21fb02e7aba4197e" and "788235feeca241228eac0561339dd07b5ea0b77d" have entirely different histories.

2 changed files with 16 additions and 20 deletions
app/src/main/java/eu/kanade/presentation/library
gradle

@ -166,13 +166,13 @@ private fun ColumnScope.SortPage(
val sortingMode = category.sort.type
val sortDescending = !category.sort.isAscending
val options = remember(trackers.isEmpty()) {
val trackerMeanPair = if (trackers.isNotEmpty()) {
MR.strings.action_sort_tracker_score to LibrarySort.Type.TrackerMean
val trackerSortOption = if (trackers.isEmpty()) {
emptyList()
} else {
null
listOf(MR.strings.action_sort_tracker_score to LibrarySort.Type.TrackerMean)
}
listOfNotNull(
listOf(
MR.strings.action_sort_alpha to LibrarySort.Type.Alphabetical,
MR.strings.action_sort_total to LibrarySort.Type.TotalChapters,
MR.strings.action_sort_last_read to LibrarySort.Type.LastRead,
@ -181,12 +181,8 @@ private fun ColumnScope.SortPage(
MR.strings.action_sort_latest_chapter to LibrarySort.Type.LatestChapter,
MR.strings.action_sort_chapter_fetch_date to LibrarySort.Type.ChapterFetchDate,
MR.strings.action_sort_date_added to LibrarySort.Type.DateAdded,
trackerMeanPair,
MR.strings.action_sort_random to LibrarySort.Type.Random,
)
}
options.map { (titleRes, mode) ->
).plus(trackerSortOption).map { (titleRes, mode) ->
if (mode == LibrarySort.Type.Random) {
BaseSortItem(
label = stringResource(titleRes),

@ -1,5 +1,5 @@
[versions]
agp_version = "8.7.1"
agp_version = "8.7.0"
lifecycle_version = "2.8.6"
paging_version = "3.3.2"
interpolator_version = "1.0.0"