From c33e5c8a1704c8c1a66aa90f6dd934cd5d064c88 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Sun, 26 Jun 2022 23:58:14 +0700 Subject: [PATCH] Fix chapter number display style (#7383) --- .../eu/kanade/presentation/manga/MangaScreen.kt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt b/app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt index fc98ce78a4..2ecaf411fc 100644 --- a/app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt @@ -390,12 +390,13 @@ private fun MangaScreenSmallImpl( ) { items(items = chapters) { chapterItem -> val (chapter, downloadState, downloadProgress) = chapterItem - val chapterTitle = remember(state.manga.displayMode, chapter.chapterNumber, chapter.name) { - if (state.manga.displayMode == CHAPTER_DISPLAY_NUMBER) { - chapterDecimalFormat.format(chapter.chapterNumber.toDouble()) - } else { - chapter.name - } + val chapterTitle = if (state.manga.displayMode == CHAPTER_DISPLAY_NUMBER) { + stringResource( + id = R.string.display_mode_chapter, + chapterDecimalFormat.format(chapter.chapterNumber.toDouble()), + ) + } else { + chapter.name } val date = remember(chapter.dateUpload) { chapter.dateUpload