ui: hide unsupported vehicle telemetry

This commit is contained in:
TCFDONMEZ
2026-09-30 11:07:29 +03:00
parent e8c9122fdf
commit 69ef0eeef6
6 changed files with 12 additions and 34 deletions
+8
View File
@@ -4,6 +4,14 @@ All notable changes to this project are documented here. Format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.2.18] - 2026-09-30
### Changed
- Kept outside temperature on DriveHub_Dort's proven `getOutCarTemp` service path.
- Removed unavailable battery-temperature, battery-capacity and cabin-temperature rows
from the vehicle screen instead of permanently showing dashes.
## [2.2.17] - 2026-09-30 ## [2.2.17] - 2026-09-30
### Fixed ### Fixed
+1
View File
@@ -0,0 +1 @@
8fd490f315aaa7089cb49d00df2ac9ca63ae9f529cdbb9b4dc4e6f33fd531ef2 FatihsMG4-unstable-2.2.18.apk
+2 -2
View File
@@ -34,8 +34,8 @@ android {
applicationId "com.evsuite.abrp" applicationId "com.evsuite.abrp"
minSdk 27 minSdk 27
targetSdk 36 targetSdk 36
versionCode 34 versionCode 35
versionName "2.2.17" versionName "2.2.18"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }
@@ -103,8 +103,7 @@ public class MainActivity extends AppCompatActivity {
*/ */
private EnergyTelemetryReader vehicleReader; private EnergyTelemetryReader vehicleReader;
private TextView vehSoc, vehRange, vehPower, vehSpeed, vehOdometer, private TextView vehSoc, vehRange, vehPower, vehSpeed, vehOdometer,
vehCharging, vehBattTemp, vehExtTemp, vehCabinTemp, vehHvac, vehCharging, vehExtTemp, vehHvac, vehSoe,
vehCapacity, vehSoe,
vehTireFl, vehTireFr, vehTireRl, vehTireRr; vehTireFl, vehTireFr, vehTireRl, vehTireRr;
/** /**
@@ -762,11 +761,8 @@ public class MainActivity extends AppCompatActivity {
vehSpeed = vehiclePane.findViewById(R.id.vehicle_speed); vehSpeed = vehiclePane.findViewById(R.id.vehicle_speed);
vehOdometer = vehiclePane.findViewById(R.id.vehicle_odometer); vehOdometer = vehiclePane.findViewById(R.id.vehicle_odometer);
vehCharging = vehiclePane.findViewById(R.id.vehicle_charging); vehCharging = vehiclePane.findViewById(R.id.vehicle_charging);
vehBattTemp = vehiclePane.findViewById(R.id.vehicle_batt_temp);
vehExtTemp = vehiclePane.findViewById(R.id.vehicle_ext_temp); vehExtTemp = vehiclePane.findViewById(R.id.vehicle_ext_temp);
vehCabinTemp = vehiclePane.findViewById(R.id.vehicle_cabin_temp);
vehHvac = vehiclePane.findViewById(R.id.vehicle_hvac); vehHvac = vehiclePane.findViewById(R.id.vehicle_hvac);
vehCapacity = vehiclePane.findViewById(R.id.vehicle_capacity);
vehSoe = vehiclePane.findViewById(R.id.vehicle_soe); vehSoe = vehiclePane.findViewById(R.id.vehicle_soe);
vehTireFl = vehiclePane.findViewById(R.id.vehicle_tire_fl); vehTireFl = vehiclePane.findViewById(R.id.vehicle_tire_fl);
vehTireFr = vehiclePane.findViewById(R.id.vehicle_tire_fr); vehTireFr = vehiclePane.findViewById(R.id.vehicle_tire_fr);
@@ -794,11 +790,8 @@ public class MainActivity extends AppCompatActivity {
vehPower.setText(fmt(s.getBatteryPowerKw(), "%.1f kW")); vehPower.setText(fmt(s.getBatteryPowerKw(), "%.1f kW"));
vehSpeed.setText(fmt(s.getSpeedKmh(), "%.0f km/h")); vehSpeed.setText(fmt(s.getSpeedKmh(), "%.0f km/h"));
vehOdometer.setText(fmt(s.getOdometerKm(), "%.0f km")); vehOdometer.setText(fmt(s.getOdometerKm(), "%.0f km"));
vehBattTemp.setText(fmt(s.getBatteryTempCelsius(), "%.0f °C"));
vehExtTemp.setText(fmt(s.getOutsideTempCelsius(), "%.0f °C")); vehExtTemp.setText(fmt(s.getOutsideTempCelsius(), "%.0f °C"));
vehCabinTemp.setText(fmt(s.getCabinTempCelsius(), "%.0f °C"));
vehHvac.setText(fmt(s.getClimate().getDriverTargetCelsius(), "%.0f °C")); vehHvac.setText(fmt(s.getClimate().getDriverTargetCelsius(), "%.0f °C"));
vehCapacity.setText(fmt(s.getBatteryCapacityKwh(), "%.1f kWh"));
vehSoe.setText(fmt(s.getBatteryEnergyKwh(), "%.1f kWh")); vehSoe.setText(fmt(s.getBatteryEnergyKwh(), "%.1f kWh"));
vehCharging.setText(chargingLabel(s)); vehCharging.setText(chargingLabel(s));
@@ -9,22 +9,10 @@
<TextView style="@style/DataLabel" android:text="@string/vehicle_row_odometer" /> <TextView style="@style/DataLabel" android:text="@string/vehicle_row_odometer" />
<TextView android:id="@+id/vehicle_odometer" style="@style/DataValue" /> <TextView android:id="@+id/vehicle_odometer" style="@style/DataValue" />
</TableRow> </TableRow>
<TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp">
<TextView style="@style/DataLabel" android:text="@string/vehicle_row_capacity" />
<TextView android:id="@+id/vehicle_capacity" style="@style/DataValue" />
</TableRow>
<TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp">
<TextView style="@style/DataLabel" android:text="@string/vehicle_row_batt_temp" />
<TextView android:id="@+id/vehicle_batt_temp" style="@style/DataValue" />
</TableRow>
<TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp"> <TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp">
<TextView style="@style/DataLabel" android:text="@string/vehicle_row_ext_temp" /> <TextView style="@style/DataLabel" android:text="@string/vehicle_row_ext_temp" />
<TextView android:id="@+id/vehicle_ext_temp" style="@style/DataValue" /> <TextView android:id="@+id/vehicle_ext_temp" style="@style/DataValue" />
</TableRow> </TableRow>
<TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp">
<TextView style="@style/DataLabel" android:text="@string/vehicle_row_cabin_temp" />
<TextView android:id="@+id/vehicle_cabin_temp" style="@style/DataValue" />
</TableRow>
<TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp"> <TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp">
<TextView style="@style/DataLabel" android:text="@string/vehicle_row_hvac" /> <TextView style="@style/DataLabel" android:text="@string/vehicle_row_hvac" />
<TextView android:id="@+id/vehicle_hvac" style="@style/DataValue" /> <TextView android:id="@+id/vehicle_hvac" style="@style/DataValue" />
-12
View File
@@ -8,22 +8,10 @@
<TextView style="@style/DataLabel" android:text="@string/vehicle_row_odometer" /> <TextView style="@style/DataLabel" android:text="@string/vehicle_row_odometer" />
<TextView android:id="@+id/vehicle_odometer" style="@style/DataValue" /> <TextView android:id="@+id/vehicle_odometer" style="@style/DataValue" />
</TableRow> </TableRow>
<TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp">
<TextView style="@style/DataLabel" android:text="@string/vehicle_row_capacity" />
<TextView android:id="@+id/vehicle_capacity" style="@style/DataValue" />
</TableRow>
<TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp">
<TextView style="@style/DataLabel" android:text="@string/vehicle_row_batt_temp" />
<TextView android:id="@+id/vehicle_batt_temp" style="@style/DataValue" />
</TableRow>
<TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp"> <TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp">
<TextView style="@style/DataLabel" android:text="@string/vehicle_row_ext_temp" /> <TextView style="@style/DataLabel" android:text="@string/vehicle_row_ext_temp" />
<TextView android:id="@+id/vehicle_ext_temp" style="@style/DataValue" /> <TextView android:id="@+id/vehicle_ext_temp" style="@style/DataValue" />
</TableRow> </TableRow>
<TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp">
<TextView style="@style/DataLabel" android:text="@string/vehicle_row_cabin_temp" />
<TextView android:id="@+id/vehicle_cabin_temp" style="@style/DataValue" />
</TableRow>
<TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp"> <TableRow style="@style/DataRow" android:minHeight="40dp" android:paddingTop="8dp" android:paddingBottom="8dp">
<TextView style="@style/DataLabel" android:text="@string/vehicle_row_hvac" /> <TextView style="@style/DataLabel" android:text="@string/vehicle_row_hvac" />
<TextView android:id="@+id/vehicle_hvac" style="@style/DataValue" /> <TextView android:id="@+id/vehicle_hvac" style="@style/DataValue" />