Skip to content

Commit 01a3e14

Browse files
authored
achievements: make sure thanks count is displayed properly (commons-app#5647)
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 commons-app#5641
1 parent 2a2780a commit 01a3e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/fr/free/nrw/commons/profile/achievements/AchievementsFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ private void setImageRevertPercentage(int notRevertPercentage){
354354
*/
355355
private void inflateAchievements(Achievements achievements) {
356356
binding.imagesUsedByWikiProgressBar.setVisibility(View.VISIBLE);
357-
binding.achievementLevel.setText(String.valueOf(achievements.getThanksReceived()));
357+
binding.thanksReceived.setText(String.valueOf(achievements.getThanksReceived()));
358358
binding.imagesUsedByWikiProgressBar.setProgress
359359
(100 * achievements.getUniqueUsedImages() / levelInfo.getMaxUniqueImages());
360360
if(binding.tvWikiPb != null) {

0 commit comments

Comments
 (0)