Skip to content

Commit

Permalink
ViewTools: format DVD number (only affects legacy data)
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Nov 29, 2024
1 parent e87a7b0 commit 368964e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import androidx.core.view.WindowCompat
import androidx.core.view.WindowInsetsCompat
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import com.battlelancer.seriesguide.R
import java.text.NumberFormat

object ViewTools {

Expand Down Expand Up @@ -86,7 +87,7 @@ object ViewTools {
return if (value != null && value > 0.0) {
label.visibility = View.VISIBLE
text.visibility = View.VISIBLE
text.text = value.toString()
text.text = NumberFormat.getNumberInstance().format(value)
true
} else {
label.visibility = View.GONE
Expand Down

0 comments on commit 368964e

Please sign in to comment.