[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.
This commit is contained in:
parent
8ca3ed13de
commit
d4840565a9
|
@ -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<InputDevice.MotionRange> motions = input.getMotionRanges();
|
||||
if (firstEvent)
|
||||
|
|
Loading…
Reference in New Issue