Commit 3ae9c77
Clean up
Previously we were calling `commitChanges` on animation end. That is not
necessary anymore since we commit on every animation evaluation. It was
done because previously we were coalescing the camera changes at Maps
SDK level and there were some issues with user animators (see
#597).
Also, we were cleaning the `highLevelAnimatorSet` only if there was an
animation listener provided. But it should be independent of that.
I also took the opportunity to remove some unnecessary anonymous object
creation:
| Before | After |
| -------- | ------- |
| <img width="1413" height="1667" alt="Screenshot 2025-09-16 at 15 45
10"
src="https://github.com/user-attachments/assets/2ddce143-04d6-49ad-9ee1-7080206e168a"
/> | <img width="1413" height="1667" alt="Screenshot 2025-09-16 at 15 47
45"
src="https://github.com/user-attachments/assets/3345a114-5670-448a-9519-fd4e157d92d5"
/> |
cc @mapbox/maps-android
GitOrigin-RevId: 0daa7ff9f1920d9af5f57bf0435a7e122107e1ebCameraAnimationsPluginImpl.startHighLevelAnimation (#6580)1 parent 25f4866 commit 3ae9c77
File tree
1 file changed
+24
-19
lines changed- plugin-animation/src/main/java/com/mapbox/maps/plugin/animation
1 file changed
+24
-19
lines changedLines changed: 24 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
393 | | - | |
394 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
395 | 396 | | |
396 | 397 | | |
397 | | - | |
| 398 | + | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
405 | | - | |
| 406 | + | |
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
| |||
912 | 913 | | |
913 | 914 | | |
914 | 915 | | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
915 | 929 | | |
916 | 930 | | |
917 | 931 | | |
| |||
941 | 955 | | |
942 | 956 | | |
943 | 957 | | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
958 | 962 | | |
959 | 963 | | |
960 | 964 | | |
| 965 | + | |
961 | 966 | | |
962 | 967 | | |
963 | 968 | | |
| |||
0 commit comments