Corrigé bug dans l'ajout de parties
This commit is contained in:
parent
9388b57447
commit
04279833bd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user