Skip to content

Commit

Permalink
Fix an issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mopsalarm committed Jul 13, 2021
1 parent 118dab1 commit 33ef8e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/pr0gramm/app/ui/StatisticsActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ class StatisticsActivity : BaseAppCompatActivity("StatisticsActivity") {

@SuppressLint("SetTextI18n")
private fun handleVoteCounts(votes: Map<CachedVote.Type, VoteService.Summary>) {
voteCountUp.text = "UP " + votes.values.sumOf<T>({ it.up })
voteCountDown.text = "DOWN " + votes.values.sumOf<T>({ it.down })
voteCountUp.text = "UP " + votes.values.sumOf { it.up }
voteCountDown.text = "DOWN " + votes.values.sumOf { it.down }

votesByTags.chartValues = toChartValues(votes[CachedVote.Type.TAG])
votesByItems.chartValues = toChartValues(votes[CachedVote.Type.ITEM])
Expand Down

0 comments on commit 33ef8e7

Please sign in to comment.