Corrigé bug dans l'ajout de parties

This commit is contained in:
Yohann D'ANELLO 2019-12-06 17:24:58 +01:00
parent 9388b57447
commit 04279833bd

View File

@ -548,8 +548,13 @@ public class NewGameFragment extends Fragment {
for (int i = 0; i < game.getGameType().getNbPlayers(); ++i)
players.get(i).addScore(game.getGameType(), game.getPoints(players.get(i)));
for (int i = 0; i < 6; ++i)
totalPoints[i].setText(String.valueOf(((Player) spinners[i].getSelectedItem()).getScore(Game.GameType.values()[nb_players.getProgress()])));
MainActivity.INSTANCE.runOnUiThread(new Runnable() {
@Override
public void run() {
for (int i = 0; i < 6; ++i)
totalPoints[i].setText(String.valueOf(((Player) spinners[i].getSelectedItem()).getScore(Game.GameType.values()[nb_players.getProgress()])));
}
});
return game;
}