Skip to content

Commit

Permalink
achievements: make sure thanks count is displayed properly (#5647)
Browse files Browse the repository at this point in the history
We seem to be incorrectly setting the the thanks count in the achievement level
text. This was then being over-written by the actual achievement level value
in the code flow. In the end, the thanks count seems not to have been displayed at all.

Correct this by properly updating the thanks count.

Fixes #5641
  • Loading branch information
sivaraam authored Mar 25, 2024
1 parent 2a2780a commit 01a3e14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ private void setImageRevertPercentage(int notRevertPercentage){
*/
private void inflateAchievements(Achievements achievements) {
binding.imagesUsedByWikiProgressBar.setVisibility(View.VISIBLE);
binding.achievementLevel.setText(String.valueOf(achievements.getThanksReceived()));
binding.thanksReceived.setText(String.valueOf(achievements.getThanksReceived()));
binding.imagesUsedByWikiProgressBar.setProgress
(100 * achievements.getUniqueUsedImages() / levelInfo.getMaxUniqueImages());
if(binding.tvWikiPb != null) {
Expand Down

0 comments on commit 01a3e14

Please sign in to comment.