From a8ebc47081a14b3af3e22e3e6123a81e938e79ab Mon Sep 17 00:00:00 2001 From: gitknilch Date: Sat, 6 Apr 2013 21:12:42 +0200 Subject: [PATCH] fix condition for log.d Change-Id: I3724f5d62a181426c6514cc33c5eba5913fc4ad9 Signed-off-by: gitknilch --- src/de/cwde/freeshisen/ShisenSho.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/de/cwde/freeshisen/ShisenSho.java b/src/de/cwde/freeshisen/ShisenSho.java index eb7aee3..f24f0c0 100644 --- a/src/de/cwde/freeshisen/ShisenSho.java +++ b/src/de/cwde/freeshisen/ShisenSho.java @@ -118,10 +118,12 @@ public class ShisenSho extends Application { view.loadTileset(); } - if (needsReset && (view != null) && (activity != null)) { - activity.onOptionsChanged(); - } else { - Log.d("ShisenSho", "Preferences changed, but no view or activity online - huh?"); + if (needsReset) { + if ((view != null) && (activity != null)) { + activity.onOptionsChanged(); + } else { + Log.d("ShisenSho", "Preferences changed, but no view or activity online - huh?"); + } } } -- 2.39.5