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 - SDLActivity.java build fails - mHapticHandler is not a member of SDLJoystickHandler_API12
Summary: SDLActivity.java build fails - mHapticHandler is not a member of SDLJoystickH...
Status: RESOLVED DUPLICATE of bug 3191
Alias: None
Product: SDL
Classification: Unclassified
Component: haptic (show other bugs)
Version: HG 2.0
Hardware: All Android (All)
: P1 blocker
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-13 18:06 UTC by ny00
Modified: 2017-08-14 13:18 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***