From da6de00c5a37e90af9b9581965151a84f609451e Mon Sep 17 00:00:00 2001 From: kauron Date: Tue, 21 Jul 2015 00:57:44 +0200 Subject: [PATCH] PlayerEditor: fixed players edition crash --- app/src/main/java/com/kauron/dungeonmanager/PlayerEditor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/kauron/dungeonmanager/PlayerEditor.java b/app/src/main/java/com/kauron/dungeonmanager/PlayerEditor.java index aaf5a9d..fbbf99f 100644 --- a/app/src/main/java/com/kauron/dungeonmanager/PlayerEditor.java +++ b/app/src/main/java/com/kauron/dungeonmanager/PlayerEditor.java @@ -60,10 +60,10 @@ public class PlayerEditor extends ActionBarActivity { if ( position != -1 ) { Player p = new Player(getSharedPreferences("player" + position, MODE_PRIVATE)); name.setText(p.getName()); - xp.setText(p.getXp()); + xp.setText(String.valueOf(p.getXp())); int[] attack = p.getAtk(); for (int i = Player.STR; i < Player.CHA + 1; i++) - atk[i].setText(attack[i]); + atk[i].setText(String.valueOf(attack[i])); classSpinner.setSelection(p.getClassInt()); raceSpinner.setSelection(p.getRaceInt()); }