App 2.10.2: infinity as the range while recuperating
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QLJfZQZeAKAwSqViTmLzki
This commit is contained in:
@@ -1038,8 +1038,10 @@ public class MainActivity extends AppCompatActivity {
|
||||
usageNote.setText(whyNot);
|
||||
return;
|
||||
}
|
||||
// Coasting at speed costs almost nothing, which would read as thousands of km.
|
||||
range.setText(e.rangeKm > 999 ? getString(R.string.range_over, 999)
|
||||
// Recuperating, the pack gains energy: the range is unbounded. Coasting at speed costs
|
||||
// almost nothing, which would read as thousands of km.
|
||||
range.setText(e.kwhPer100Km <= 0 ? "∞"
|
||||
: e.rangeKm > 999 ? getString(R.string.range_over, 999)
|
||||
: String.format(java.util.Locale.US, "%.0f km", e.rangeKm));
|
||||
rangeNote.setText(e.kwhPer100Km <= 0 ? getString(R.string.range_recuperating) : "");
|
||||
usage.setText(getString(R.string.range_consumption, e.kwhPer100Km));
|
||||
|
||||
Reference in New Issue
Block a user