From 84c0d8abb3857712545e4f685b8abbee79e3166f Mon Sep 17 00:00:00 2001 From: kauron Date: Sun, 19 Jul 2015 20:15:59 +0200 Subject: [PATCH] PowerEditor: minor correction --- app/src/main/java/com/kauron/dungeonmanager/PowerEditor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/kauron/dungeonmanager/PowerEditor.java b/app/src/main/java/com/kauron/dungeonmanager/PowerEditor.java index 2bd3807..3f8c172 100644 --- a/app/src/main/java/com/kauron/dungeonmanager/PowerEditor.java +++ b/app/src/main/java/com/kauron/dungeonmanager/PowerEditor.java @@ -156,7 +156,7 @@ public class PowerEditor extends ActionBarActivity { if ( originalName == null ) { saveName = strings[0]; for (int i = 0; i < powers; i++) { - if (p.getString("power" + power, "").equals(saveName)) { + if (saveName.equals(p.getString("power" + power, ""))) { SnackbarManager.show(Snackbar .with(this) .text(R.string.power_same_name)