Skip to content

Commit ca886f5

Browse files
committed
make RouteShieldCallback methods with UiThread annotation
1 parent de6914e commit ca886f5

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Mapbox welcomes participation and contributions from everyone.
1111
- Marked `MapboxSpeedLimitView`, `MapboxStatusView`, `MapboxTripProgressView`, `MapboxSoundButton` methods with `@UiThread` annotation. [#6272](https://github.com/mapbox/mapbox-navigation-android/pull/6272)
1212
- Marked `InfoPanelBinder`, `NavigationView`, `NavigationViewApi` methods with `@UiThread` annotation. [#6269](https://github.com/mapbox/mapbox-navigation-android/pull/6269)
1313
- Marked `MapboxExitText`, `MapboxLaneGuidance`, `MapboxLaneGuidanceAdapter`, `MapboxManeuverView`, `MapboxPrimaryManeuver`, `MapboxSecondaryManeuver`, `MapboxStepDistance`, `MapboxSubManeuver`, `MapboxTurnIconManeuver`, `MapboxUpcomingManeuverAdapter` methods with `@UiThread` annotation. [#6270](https://github.com/mapbox/mapbox-navigation-android/pull/6270)
14+
- Marked `RouteShieldCallback` methods with `@UiThread` annotation. [#6271](https://github.com/mapbox/mapbox-navigation-android/pull/6271)
1415

1516
## Mapbox Navigation SDK 2.9.0-beta.1 - 06 October, 2022
1617
### Changelog

libnavui-shield/api/current.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ package com.mapbox.navigation.ui.shield.model {
3939
}
4040

4141
public fun interface RouteShieldCallback {
42-
method public void onRoadShields(java.util.List<? extends com.mapbox.bindgen.Expected<com.mapbox.navigation.ui.shield.model.RouteShieldError,com.mapbox.navigation.ui.shield.model.RouteShieldResult>> shields);
42+
method @UiThread public void onRoadShields(java.util.List<? extends com.mapbox.bindgen.Expected<com.mapbox.navigation.ui.shield.model.RouteShieldError,com.mapbox.navigation.ui.shield.model.RouteShieldResult>> shields);
4343
}
4444

4545
public final class RouteShieldError {

libnavui-shield/src/main/java/com/mapbox/navigation/ui/shield/model/RouteShieldCallback.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.mapbox.navigation.ui.shield.model
22

33
import android.graphics.Bitmap
4+
import androidx.annotation.UiThread
45
import com.mapbox.bindgen.Expected
56

67
/**
@@ -18,6 +19,7 @@ fun interface RouteShieldCallback {
1819
*
1920
* @param shields list of [Expected] wither containing [RouteShieldError] or [RouteShieldResult]
2021
*/
22+
@UiThread
2123
fun onRoadShields(
2224
shields: List<Expected<RouteShieldError, RouteShieldResult>>
2325
)

0 commit comments

Comments
 (0)