mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 04:13:53 +01:00
achievements: make sure thanks count is displayed properly
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
This commit is contained in:
parent
7e5789d539
commit
7689e24977
1 changed files with 1 additions and 1 deletions
|
|
@ -354,7 +354,7 @@ public class AchievementsFragment extends CommonsDaggerSupportFragment {
|
|||
*/
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue