Fixed bug

This commit is contained in:
=
2018-02-14 16:31:33 +01:00
parent ee7536ba5f
commit 2fa424139b
2 changed files with 12 additions and 0 deletions

View File

@ -71,12 +71,23 @@ public class GoalMessageLevelButton implements View.OnClickListener {
private void showCollectedCurrency(boolean[] stars, boolean energy) {
if (stars[0])
this.star1.setImageResource(R.drawable.currency_star);
else
this.star1.setImageResource(R.drawable.currency_star_empty);
if (stars[1])
this.star2.setImageResource(R.drawable.currency_star);
else
this.star2.setImageResource(R.drawable.currency_star_empty);
if (stars[2])
this.star3.setImageResource(R.drawable.currency_star);
else
this.star3.setImageResource(R.drawable.currency_star_empty);
if (energy)
this.energy.setImageResource(R.drawable.currency_energy);
else
this.energy.setImageResource(R.drawable.currency_energy_empty);
}
public Level getLevel() {