Repository navigation
fix(maps-compose): apply initial camera during map creation - #1027
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
@dkhawk I've merged the latest Validation after the merge:
Could you review this PR, particularly the initial-camera precedence? I've also signed the CLA. |
a418cf9 to
b69c2bd
Compare
b69c2bd to
76d9222
Compare
|
@kikoso Could you review this again? I've rebased the branch onto the latest The branch includes the precedence change you suggested: Validation after the rebase:
I couldn't run instrumentation tests locally because no Android device or emulator is connected. |
76d9222 to
5d96a9a
Compare
|
@kikoso Thanks for the approval! I rebased onto the latest I also addressed and replied to all four review threads: camera assertions now run outside the main-thread callback, the redundant binding test is covered by main’s existing test, and JVM assertions now check the options passed to both map factories. Could you take another look at the rebased changes and confirm approval? |
Fixes #491.
Summary
CameraPositionState.positiontoGoogleMapOptionsbefore map creation, including whengoogleMapOptionsFactorysupplies a camera. This matches the camera applied when the map attaches and avoids a startup jump.GoogleMapoverloads use the same precedence; document that precedence on both overloads.mainafter feat: support custom MapView delegates and add Navigation SDK sample app #1061 and preserve the existing Robolectric camera-binding coverage rather than duplicating it.Validation
After the latest rebase and review fixes:
:maps-compose:testDebugUnitTest— passed (44 tests, no failures or skips):maps-app:compileDebugAndroidTestKotlin— passedlint— passedapiCheck— passedgit diff --check— passedInstrumentation tests and Baseline Profile regeneration were not run locally after this rebase because no Android device or emulator is connected.