MangaScreen: Improve chapter list scrolling performance (#7491)

* MangaScreen: Improve chapter list scrolling performance

Process chapter title, date and read progress string ahead of time

* Use enum for contentType and add key
This commit is contained in:
Ivan Iskandar
2022-07-10 03:20:40 +07:00
committed by GitHub
parent b15073fd61
commit 1551891c15
4 changed files with 95 additions and 69 deletions

View File

@@ -81,8 +81,8 @@ fun MangaChapterListItem(
}
Text(
text = title,
style = MaterialTheme.typography.bodyMedium
.copy(color = textColor),
color = textColor,
style = MaterialTheme.typography.bodyMedium,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
onTextLayout = { textHeight = it.size.height },