Skip to content

Commit bf4f43c

Browse files
authored
Fix duration=0 bug for custome puck animators (#2801)
1 parent b023b66 commit bf4f43c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Mapbox welcomes participation and contributions from everyone.
44

55
# main
6+
# 11.8.0-rc.1
7+
## Bug fixes 🐞
8+
* Fix an Android 12 specific bug where location puck custom animator options lambda without explicit `ValueAnimator.duration` resulted in `duration = 0`.
69

710
# 11.8.0-beta.1 October 14, 2024
811
## Features ✨ and improvements 🏁

plugin-locationcomponent/src/main/java/com/mapbox/maps/plugin/locationcomponent/animators/PuckAnimator.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ internal abstract class PuckAnimator<T>(
4242
duration = LocationComponentConstants.DEFAULT_INTERVAL_MILLIS
4343
interpolator = DEFAULT_INTERPOLATOR
4444
userConfiguredAnimator = clone()
45+
// workaround for bug in Android 12 described in
46+
// https://github.com/mapbox/mapbox-maps-android/issues/1446
47+
userConfiguredAnimator.duration = duration
4548
}
4649

4750
/**

0 commit comments

Comments
 (0)