From d4840565a9981a2ebab0cf8fb97da64ffa86080c Mon Sep 17 00:00:00 2001 From: lioncash Date: Wed, 28 Aug 2013 08:21:09 -0400 Subject: [PATCH] [Android] Fix the position of a logcat logging statement. If, for whatever reason, the event parameter is null, then the previous placement would have caused an exception. --- .../dolphinemu/dolphinemu/settings/InputConfigFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/settings/InputConfigFragment.java b/Source/Android/src/org/dolphinemu/dolphinemu/settings/InputConfigFragment.java index 8914c496b9..cbdb78567c 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/settings/InputConfigFragment.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/settings/InputConfigFragment.java @@ -128,10 +128,11 @@ public final class InputConfigFragment extends PreferenceFragment { public boolean onMotion(MotionEvent event) { - Log.d("InputConfigFragment", "Received motion event: " + event.getAction()); if (event == null || (event.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) == 0) return false; + Log.d("InputConfigFragment", "Received motion event: " + event.getAction()); + InputDevice input = event.getDevice(); List motions = input.getMotionRanges(); if (firstEvent)