-
Notifications
You must be signed in to change notification settings - Fork 154
[style] validate fully loaded event of style #332
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
Conversation
2e099db to
5d24690
Compare
| handlerMain.post { | ||
| nativeMapWeakRef.call { (this as StyleManagerInterface).styleURI = styleUri } | ||
| } | ||
| nativeMapWeakRef.call { (this as StyleManagerInterface).styleURI = styleUri } |
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.
A bit concerned here.
We're removing handler logic here but leaving it in sdk/src/main/java/com/mapbox/maps/NativeObserver.kt. If I remember correctly some some metrics benchmarks were having a deadlock because of not posting here.
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.
If tests pass - we can follow up later.
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.
agreed, let me dig up why we have that construct
kiryldz
left a comment
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.
LGTM but better check metrics before merging.
fb46aa8 to
87f98ee
Compare
c5819e8 to
d8fdd31
Compare
|
RC.3 tag landed, going to merge to be included in RC.4 |
Pull request checklist:
mapbox-maps-androidchangelog:<changelog></changelog>.Summary of changes
We currently maintain style loaded state in the SDK to workaround an upstream issue.
This PR validates if we can remove that state checking from our end.