-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing hidden field violation - ScaleGestureDetector #39
Comments
Noting here that since the release of the Android Pie, the hidden field access violation has been moved to the
|
Problem is still active. |
Noting that in the Android Q beta reflection on this particular part of the code has been moved to the "dark greylist":
which based on the docs:
means that if the app targets Android Q or above, the workaround is going to result in no-op/exception. Since there's no movement in the ticket tracking the span in the scale gesture detector, I think we're forced to roll out our own implementation by the time Android Q is officially released. |
Refs. mapbox/mapbox-gl-native#11625.
Android P introduces new restrictions when it comes to accessing
private
andhidden
methods and fields within the SDK, see the preview note.#30 uses reflection to access private fields and we need to workaround that in preparation for the Android P release.
There is already an issue tracked on the Google's issue board regarding settable span values for the
ScaleGestureDetector
, I'm not really sure about chances of it being adressed./cc @tobrun
The text was updated successfully, but these errors were encountered: