mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 19:11:50 +01:00
Fix chapter number display style (#7383)
This commit is contained in:
parent
6129bbc9ab
commit
c33e5c8a17
@ -390,13 +390,14 @@ private fun MangaScreenSmallImpl(
|
|||||||
) {
|
) {
|
||||||
items(items = chapters) { chapterItem ->
|
items(items = chapters) { chapterItem ->
|
||||||
val (chapter, downloadState, downloadProgress) = chapterItem
|
val (chapter, downloadState, downloadProgress) = chapterItem
|
||||||
val chapterTitle = remember(state.manga.displayMode, chapter.chapterNumber, chapter.name) {
|
val chapterTitle = if (state.manga.displayMode == CHAPTER_DISPLAY_NUMBER) {
|
||||||
if (state.manga.displayMode == CHAPTER_DISPLAY_NUMBER) {
|
stringResource(
|
||||||
chapterDecimalFormat.format(chapter.chapterNumber.toDouble())
|
id = R.string.display_mode_chapter,
|
||||||
|
chapterDecimalFormat.format(chapter.chapterNumber.toDouble()),
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
chapter.name
|
chapter.name
|
||||||
}
|
}
|
||||||
}
|
|
||||||
val date = remember(chapter.dateUpload) {
|
val date = remember(chapter.dateUpload) {
|
||||||
chapter.dateUpload
|
chapter.dateUpload
|
||||||
.takeIf { it > 0 }
|
.takeIf { it > 0 }
|
||||||
|
Loading…
Reference in New Issue
Block a user