Skip to content

Commit 2094ef9

Browse files
Display chapter numbers as integers instead of decimal
1 parent 7264827 commit 2094ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/guide/graphql/toc/ui/chapters/ChaptersFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ChaptersFragment : Fragment() {
5757
chapterNumber = chapter.number?.toInt() ?: -1,
5858
chapterTitle = if (chapter.number == null) chapter.title else getString(
5959
R.string.chapter_title,
60-
chapter.number.toString(),
60+
chapter.number.toInt().toString(),
6161
chapter.title
6262
)
6363
)

0 commit comments

Comments
 (0)