Skip to content

Commit ac67fd0

Browse files
malysclaude
andcommitted
fix(route): say the stop-removing speed once, under the chosen road
The what-if card and the comparison card both carried the headline speed. The comparison card keeps it, beside the road it was worked out on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 18cadcc commit ac67fd0

3 files changed

Lines changed: 2 additions & 11 deletions

File tree

‎app/src/main/java/com/evsuite/chargepilot/ChargeStopActivity.kt‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -853,16 +853,9 @@ class ChargeStopActivity : AppCompatActivity() {
853853
}
854854
)
855855
)
856+
// The headline — the speed that removes the stop — is the comparison card's row under
857+
// the chosen road; written here too, the same sentence sat on two cards at once.
856858
is RouteWhatIf.Result.Ready -> {
857-
whatIf.headline?.let {
858-
lines.add(
859-
getString(
860-
R.string.route_what_if_headline,
861-
it.speedKmh,
862-
it.delayMinutes.toInt(),
863-
)
864-
)
865-
}
866859
whatIf.options.mapTo(lines) {
867860
getString(
868861
R.string.route_what_if_row,

‎app/src/main/res/values-fr/strings.xml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ Cette charge atteint environ %4$s à ce rythme</string>
302302
%2$s km · %3$d min · montée %4$s m · descente %5$s m
303303
Consommation %6$s %% par km</string>
304304
<string name="charge_stop_grade">Montée et descente : %1$s %% de charge estimés, ± %2$s. Modélisé d’après le profil de l’itinéraire, jamais mesuré.</string>
305-
<string name="route_what_if_headline">À %1$d km/h vous n’auriez pas besoin de recharger, pour environ %2$d min de plus sur la route.</string>
306305
<string name="route_what_if_row">%1$d km/h sur %2$s km · +%3$d min · économise %4$s à %5$s %% de charge estimés</string>
307306
<string name="route_what_if_unavailable_model">Ralentir : pas de comparaison. Ce micrologiciel n’a jamais entraîné de modèle de consommation.</string>
308307
<string name="route_what_if_unavailable_temperature">Ralentir : pas de comparaison. Aucune température extérieure exploitable.</string>

‎app/src/main/res/values/strings.xml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ This charge reaches about %4$s at that rate</string>
309309
Spending %6$s %% per km</string>
310310
<string name="charge_stop_grade">Climb and descent: an estimated %1$s %% of charge, ± %2$s. Modelled from the route profile, never measured.</string>
311311
<!-- CP-049. Every saving is stated with the delay it costs, in the same sentence. -->
312-
<string name="route_what_if_headline">At %1$d km/h you would not need to charge, for about %2$d min more on the road.</string>
313312
<string name="route_what_if_row">%1$d km/h over %2$s km · +%3$d min · saves an estimated %4$s to %5$s %% of charge</string>
314313
<string name="route_what_if_unavailable_model">Slowing down: no comparison. This firmware has never trained a consumption model.</string>
315314
<string name="route_what_if_unavailable_temperature">Slowing down: no comparison. No usable outside-temperature reading.</string>

0 commit comments

Comments
 (0)