From 193d40bae414bd0b8ac4db288f518a4690ca10c1 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Tue, 28 Jan 2020 17:32:38 +0100 Subject: [PATCH] Cleanup AMotionEvent_getAxisValue check I though it was a weak loading but in fact it's explicit so loading with some define magic, so we need to check for p_AMotionEvent_getAxisValue to be clean. Binary code is actually the same Tested by reverting path fix --- input/drivers/android_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/drivers/android_input.c b/input/drivers/android_input.c index a1f55e1980..84222fe210 100644 --- a/input/drivers/android_input.c +++ b/input/drivers/android_input.c @@ -687,7 +687,7 @@ static INLINE void android_mouse_calculate_deltas(android_input_t *android, } /* This axis is only available on Android Nougat and on Android devices with NVIDIA extensions */ - if (AMotionEvent_getAxisValue) + if (p_AMotionEvent_getAxisValue) { x = AMotionEvent_getAxisValue(event,AMOTION_EVENT_AXIS_RELATIVE_X, motion_ptr); y = AMotionEvent_getAxisValue(event,AMOTION_EVENT_AXIS_RELATIVE_Y, motion_ptr);