File tree Expand file tree Collapse file tree
app/src/main/java/eu/kanade/presentation/track Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -304,24 +304,22 @@ private fun SearchResultItem(
304304 }
305305 },
306306 )
307+ if (trackSearch.authors.isNotEmpty() || trackSearch.artists.isNotEmpty()) {
308+ Text (
309+ text = (trackSearch.authors + trackSearch.artists).distinct().joinToString(),
310+ modifier = Modifier
311+ .secondaryItemAlpha(),
312+ maxLines = 1 ,
313+ overflow = TextOverflow .Ellipsis ,
314+ style = MaterialTheme .typography.bodySmall,
315+ )
316+ }
307317 if (type.isNotBlank()) {
308318 SearchResultItemDetails (
309319 title = stringResource(MR .strings.track_type),
310320 text = type,
311321 )
312322 }
313- if (trackSearch.authors.isNotEmpty()) {
314- SearchResultItemDetails (
315- title = stringResource(MR .strings.author),
316- text = trackSearch.authors.joinToString(),
317- )
318- }
319- if (trackSearch.artists.isNotEmpty() && ! trackSearch.artists.containsAll(trackSearch.authors)) {
320- SearchResultItemDetails (
321- title = stringResource(MR .strings.artist),
322- text = trackSearch.artists.joinToString(),
323- )
324- }
325323 if (trackSearch.start_date.isNotBlank()) {
326324 SearchResultItemDetails (
327325 title = stringResource(MR .strings.label_started),
You can’t perform that action at this time.
0 commit comments