We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3747

Summary: SDLActivity.java build fails - mHapticHandler is not a member of SDLJoystickHandler_API12
Product: SDL Reporter: ny00
Component: hapticAssignee: Sam Lantinga <slouken>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P1 CC: sylvain.becker
Version: HG 2.0   
Hardware: All   
OS: Android (All)   

Description ny00 2017-08-13 18:06:54 UTC
Can't confirm this actually works, but changing mHapticHandler -> SDLActivity.mHapticHandler in pollHapticDevices and hapticRun seems to make the code build.
Comment 1 ny00 2017-08-13 18:41:37 UTC
An additional comment - There's also a runtime issue, as the static methods "pollHapticDevices" and "hapticRun" cannot be found (see SDL_Android_Init).

Moving them from SDLJoystickHandler_API12 into SDLActivity resolves this issue. (And then, weirdly enough, my previously suggested mHapticHandler -> SDLActivity.mHapticHandler change shall be unnecessary.)

To summarize: Ignore my original comment on the bug and move these static methods into SDLActivity.
Comment 2 Sam Lantinga 2017-08-14 03:58:05 UTC
Can you provide a tested patch? I don't have an Android testing environment right now.

Thanks!
Comment 3 Sylvain 2017-08-14 07:47:19 UTC
There is a patch there to fix the same issue: bug 3191
Comment 4 Sam Lantinga 2017-08-14 13:18:53 UTC
I applied Sylvain's patch in bug 3191, thanks!

*** This bug has been marked as a duplicate of bug 3191 ***