App 2.12.1: no scroll bars; energy since start
The pages' scroll bars never faded on the car: a ScrollView shows its bar on every layout, and the live values lay the page out every two seconds. StableScrollView, the root of every page, now has none. A new "Energy since start" tile, left of "Usage since start", shows the net kWh taken from the pack since the trip began, recuperation counted back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QLJfZQZeAKAwSqViTmLzki
This commit is contained in:
@@ -110,6 +110,11 @@ final class RangeEstimator {
|
||||
tripLast = s;
|
||||
}
|
||||
|
||||
/** Net energy taken from the pack since start, in kWh; null before the trip's first sample. */
|
||||
synchronized Double energySinceStart() {
|
||||
return tripLast == null ? null : tripEnergyKwh;
|
||||
}
|
||||
|
||||
/** Range at the consumption since start; null until the trip has some distance behind it. */
|
||||
synchronized Estimate sinceStart(Double remainingKwh) {
|
||||
if (remainingKwh == null || tripDistanceKm < MIN_DISTANCE_KM) return null;
|
||||
|
||||
Reference in New Issue
Block a user