From: gitknilch Date: Sat, 6 Apr 2013 19:12:42 +0000 (+0200) Subject: fix condition for log.d X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/FreeShisen/commitdiff_plain/a8ebc47081a14b3af3e22e3e6123a81e938e79ab fix condition for log.d Change-Id: I3724f5d62a181426c6514cc33c5eba5913fc4ad9 Signed-off-by: gitknilch --- 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?"); + } } }