Skip to content

Commit 67163a6

Browse files
committed
Revert "fixed an issue where trail layer was visible for inactive legs"
This reverts commit 559b871.
1 parent fb49f01 commit 67163a6

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

changelog/unreleased/bugfixes/7326.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

libnavui-maps/src/main/java/com/mapbox/navigation/ui/maps/route/line/api/MapboxRouteLineApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ class MapboxRouteLineApi(
17451745
MapboxRouteLineUtils.getRouteLineExpression(
17461746
vanishingPointOffset,
17471747
colorResources.routeLineTraveledColor,
1748-
Color.TRANSPARENT,
1748+
colorResources.routeLineTraveledColor
17491749
)
17501750
}
17511751

@@ -1754,7 +1754,7 @@ class MapboxRouteLineApi(
17541754
MapboxRouteLineUtils.getRouteLineExpression(
17551755
vanishingPointOffset,
17561756
colorResources.routeLineTraveledCasingColor,
1757-
Color.TRANSPARENT,
1757+
colorResources.routeLineTraveledCasingColor
17581758
)
17591759
}
17601760

libnavui-maps/src/test/java/com/mapbox/navigation/ui/maps/route/line/api/MapboxRouteLineApiRoboTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,14 @@ class MapboxRouteLineApiRoboTest {
173173
StringChecker("[line-progress]"),
174174
StringChecker("[rgba, 0.0, 0.0, 3.0, 1.0]"),
175175
DoubleChecker(0.0),
176-
StringChecker("[rgba, 0.0, 0.0, 0.0, 0.0]"),
176+
StringChecker("[rgba, 0.0, 0.0, 3.0, 1.0]"),
177177
)
178178
val expectedTrailCasingExpressionContents = listOf(
179179
StringChecker("step"),
180180
StringChecker("[line-progress]"),
181181
StringChecker("[rgba, 0.0, 0.0, 4.0, 1.0]"),
182182
DoubleChecker(0.0),
183-
StringChecker("[rgba, 0.0, 0.0, 0.0, 0.0]"),
183+
StringChecker("[rgba, 0.0, 0.0, 4.0, 1.0]"),
184184
)
185185
val expectedMaskingTrafficExpressionContents = listOf(
186186
StringChecker("step"),
@@ -770,14 +770,14 @@ class MapboxRouteLineApiRoboTest {
770770
StringChecker("[line-progress]"),
771771
StringChecker("[rgba, 0.0, 0.0, 3.0, 1.0]"),
772772
DoubleChecker(0.0),
773-
StringChecker("[rgba, 0.0, 0.0, 0.0, 0.0]"),
773+
StringChecker("[rgba, 0.0, 0.0, 3.0, 1.0]"),
774774
)
775775
val expectedTrailCasingExpressionContents = listOf(
776776
StringChecker("step"),
777777
StringChecker("[line-progress]"),
778778
StringChecker("[rgba, 0.0, 0.0, 4.0, 1.0]"),
779779
DoubleChecker(0.0),
780-
StringChecker("[rgba, 0.0, 0.0, 0.0, 0.0]"),
780+
StringChecker("[rgba, 0.0, 0.0, 4.0, 1.0]"),
781781
)
782782
val expectedMaskingTrafficExpressionContents = listOf(
783783
StringChecker("step"),

libnavui-maps/src/test/java/com/mapbox/navigation/ui/maps/route/line/api/MapboxRouteLineApiTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,14 +1334,14 @@ class MapboxRouteLineApiTest {
13341334
StringChecker("[line-progress]"),
13351335
StringChecker("[rgba, 255.0, 0.0, 0.0, 1.0]"),
13361336
DoubleChecker(0.0),
1337-
StringChecker("[rgba, 0.0, 0.0, 0.0, 0.0]"),
1337+
StringChecker("[rgba, 255.0, 0.0, 0.0, 1.0]"),
13381338
)
13391339
val expectedTrailCasingExpressionContents = listOf(
13401340
StringChecker("step"),
13411341
StringChecker("[line-progress]"),
13421342
StringChecker("[rgba, 255.0, 0.0, 255.0, 1.0]"),
13431343
DoubleChecker(0.0),
1344-
StringChecker("[rgba, 0.0, 0.0, 0.0, 0.0]"),
1344+
StringChecker("[rgba, 255.0, 0.0, 255.0, 1.0]"),
13451345
)
13461346
val expectedMaskingTrafficExpressionContents = listOf(
13471347
StringChecker("step"),

0 commit comments

Comments
 (0)