From 4d193abb64feefca316f1c634b958de1cc27ff99 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Sat, 7 May 2022 12:17:50 +0200 Subject: [PATCH] changed GameDecorator.java to show full name of players. --- .../main/gameScheduleView/GameDecorator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/gameScheduleView/GameDecorator.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/gameScheduleView/GameDecorator.java index a53e43d..fcde13d 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/gameScheduleView/GameDecorator.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/gameScheduleView/GameDecorator.java @@ -38,14 +38,14 @@ public class GameDecorator { public String getParticipantOne() { if (game.getParticipant1() != null) { - return game.getParticipant1().getName(); + return game.getParticipant1().toString(); } return "1"; } public String getParticipantTwo() { if (game.getParticipant2() != null) { - return game.getParticipant2().getName(); + return game.getParticipant2().toString(); } return "2"; }