Commit 4ff37be
Avoid setting camera for Anchor animator (#6628)
Currently we call set camera per each Animator independently.
For Anchor animator it doesn't make sense to call set camera since it
will do nothing.
This PR makes that more explicit and avoids some minor calls for the
Anchor animator.
Moreover, this PR also resets the camera builder instead of creating a
new one on every animator update.
cc @mapbox/maps-android
GitOrigin-RevId: 2edc883a9b63a7cbfe8875f84fc1cdbb0364ff781 parent 9cbd785 commit 4ff37be
File tree
2 files changed
+17
-18
lines changed- plugin-animation/src/main/java/com/mapbox/maps/plugin/animation
2 files changed
+17
-18
lines changedLines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
350 | 350 | | |
Lines changed: 11 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | 380 | | |
384 | 381 | | |
385 | 382 | | |
| |||
399 | 396 | | |
400 | 397 | | |
401 | 398 | | |
402 | | - | |
403 | | - | |
404 | | - | |
| 399 | + | |
| 400 | + | |
405 | 401 | | |
406 | 402 | | |
407 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
408 | 406 | | |
409 | | - | |
410 | | - | |
411 | | - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
412 | 411 | | |
413 | 412 | | |
414 | 413 | | |
415 | 414 | | |
416 | | - | |
417 | | - | |
| 415 | + | |
| 416 | + | |
418 | 417 | | |
419 | 418 | | |
420 | 419 | | |
| |||
0 commit comments