Fixed bug
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user