diff --git a/CHANGELOG.md b/CHANGELOG.md index dcaafdb5e9..f83f00a71b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ Releases marked with 🧪 (or previously with the "beta" suffix) were released on [the beta program](https://github.com/UweTrottmann/SeriesGuide/wiki/Beta) only. +## Unreleased + +* 🔧 Overview: use local number format for absolute episode number. + ## Version 2024.4 ### 2024.4.5 - 2024-10-23 🧪 diff --git a/app/src/main/java/com/battlelancer/seriesguide/shows/overview/OverviewFragment.kt b/app/src/main/java/com/battlelancer/seriesguide/shows/overview/OverviewFragment.kt index 91245b6a6e..329b57f053 100644 --- a/app/src/main/java/com/battlelancer/seriesguide/shows/overview/OverviewFragment.kt +++ b/app/src/main/java/com/battlelancer/seriesguide/shows/overview/OverviewFragment.kt @@ -82,6 +82,7 @@ import org.greenrobot.eventbus.EventBus import org.greenrobot.eventbus.Subscribe import org.greenrobot.eventbus.ThreadMode import timber.log.Timber +import java.text.NumberFormat /** * Displays general information about a show and, if there is one, the next episode to watch. @@ -470,7 +471,9 @@ class OverviewFragment() : Fragment(), EpisodeActionsContract { val episodeAbsoluteNumber = episode.absoluteNumber if (episodeAbsoluteNumber != null && episodeAbsoluteNumber > 0 && episodeAbsoluteNumber != number) { - infoText.append(" (").append(episodeAbsoluteNumber).append(")") + infoText.append(" (") + .append(NumberFormat.getIntegerInstance().format(episodeAbsoluteNumber.toLong())) + .append(")") } // release date @@ -624,7 +627,11 @@ class OverviewFragment() : Fragment(), EpisodeActionsContract { ) } - private fun loadEpisodeImage(imageView: ImageView, detailsHiddenView: View, imagePath: String?) { + private fun loadEpisodeImage( + imageView: ImageView, + detailsHiddenView: View, + imagePath: String? + ) { if (imagePath.isNullOrEmpty()) { imageView.setImageDrawable(null) detailsHiddenView.isGone = true