mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
achievements: make sure thanks count is displayed properly (#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 #5641
This commit is contained in:
parent
2a2780a4d2
commit
01a3e14154
1 changed files with 1 additions and 1 deletions
|
|
@ -354,7 +354,7 @@ public class AchievementsFragment extends CommonsDaggerSupportFragment {
|
||||||
*/
|
*/
|
||||||
private void inflateAchievements(Achievements achievements) {
|
private void inflateAchievements(Achievements achievements) {
|
||||||
binding.imagesUsedByWikiProgressBar.setVisibility(View.VISIBLE);
|
binding.imagesUsedByWikiProgressBar.setVisibility(View.VISIBLE);
|
||||||
binding.achievementLevel.setText(String.valueOf(achievements.getThanksReceived()));
|
binding.thanksReceived.setText(String.valueOf(achievements.getThanksReceived()));
|
||||||
binding.imagesUsedByWikiProgressBar.setProgress
|
binding.imagesUsedByWikiProgressBar.setProgress
|
||||||
(100 * achievements.getUniqueUsedImages() / levelInfo.getMaxUniqueImages());
|
(100 * achievements.getUniqueUsedImages() / levelInfo.getMaxUniqueImages());
|
||||||
if(binding.tvWikiPb != null) {
|
if(binding.tvWikiPb != null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue