mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-18 02:42:42 +00:00
[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)
|
public boolean onMotion(MotionEvent event)
|
||||||
{
|
{
|
||||||
Log.d("InputConfigFragment", "Received motion event: " + event.getAction());
|
|
||||||
if (event == null || (event.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) == 0)
|
if (event == null || (event.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Log.d("InputConfigFragment", "Received motion event: " + event.getAction());
|
||||||
|
|
||||||
InputDevice input = event.getDevice();
|
InputDevice input = event.getDevice();
|
||||||
List<InputDevice.MotionRange> motions = input.getMotionRanges();
|
List<InputDevice.MotionRange> motions = input.getMotionRanges();
|
||||||
if (firstEvent)
|
if (firstEvent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user