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
Fix: Android User Location / Camera issues #3363
Conversation
- Fixed puck images not being fetched after initial addToMap - Fixed puck images not being correctly applied when changed on the fly - Fixed camera follow props not properly accepting null/undefined values - Fixed crash in ExpressionParser by wrapping in a try/catch
removeSubscriptions() | ||
val imageManager = map.imageManager | ||
this.imageManager = imageManager | ||
_apply() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mfazekas There is an explicit _apply() call here because unlike on iOS when the new subscriptions are set up below this line, an initial call is not made to apply the changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mysport12 is there a reason we can't keep the swift and Kotlin in sync?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementations for this component are in sync between Swift and Kotlin, minus this one line. I didn't go down the rabbit hole to understand the differences between the iOS and Android image managers and why iOS calls the handler on init and Android doesn't.
5d495f8
to
d199e11
Compare
String jsonString = new Gson().toJson(array); | ||
return Expression.fromRaw(jsonString); | ||
} catch (Exception e) { | ||
Log.e(LOG_TAG, "An error occurred while attempting to parse the expression", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls use com.rnmapbox.rnmbx.utils.Logger, as android logger only goes to console and not visible on the ReactNative side
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went that route originally but it threw an error saying I couldn't use a non-static method in a static one. If you are able to offer some assistance I would appreciate it. I can jump back into this next week otherwise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think I may have figured it out. Please review.
Description
Checklist
CONTRIBUTING.md
yarn generate
in the root folder/example
app./example
)