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

@ -18,6 +18,7 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:testOnly="true"
android:theme="@style/AppTheme" >
<activity
android:name="de.frajul.endlessroll.main.GameActivity"

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() {