Show average scores in tracker search results
Closes #8280 (cherry picked from commit 734cb0be6eeeb484d367ba1cfdbf8cd0076157d3) # Conflicts: # app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/KitsuApi.kt
This commit is contained in:
@@ -193,6 +193,7 @@ fun TrackerSearch(
|
||||
type = it.publishing_type.toLowerCase(Locale.current).capitalize(Locale.current),
|
||||
startDate = it.start_date,
|
||||
status = it.publishing_status.toLowerCase(Locale.current).capitalize(Locale.current),
|
||||
score = it.score,
|
||||
description = it.summary.trim(),
|
||||
selected = it == selected,
|
||||
onClick = { onSelectedChange(it) },
|
||||
@@ -218,6 +219,7 @@ private fun SearchResultItem(
|
||||
type: String,
|
||||
startDate: String,
|
||||
status: String,
|
||||
score: Float,
|
||||
description: String,
|
||||
selected: Boolean,
|
||||
onClick: () -> Unit,
|
||||
@@ -279,6 +281,12 @@ private fun SearchResultItem(
|
||||
text = status,
|
||||
)
|
||||
}
|
||||
if (score != -1f) {
|
||||
SearchResultItemDetails(
|
||||
title = stringResource(MR.strings.score),
|
||||
text = score.toString(),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (description.isNotBlank()) {
|
||||
|
||||
Reference in New Issue
Block a user