Use device alias on battery info activity

This commit is contained in:
José Rebelo 2022-07-24 22:10:10 +01:00
parent 04236a3f86
commit 3e6d2bd40e

View File

@ -165,7 +165,7 @@ BatteryInfoActivity extends AbstractGBActivity {
String level = gbDevice.getBatteryLevel(batteryIndex) > 0 ? String.format("%1s%%", gbDevice.getBatteryLevel(batteryIndex)) : "";
String voltage = gbDevice.getBatteryVoltage(batteryIndex) > 0 ? String.format("%1sV", gbDevice.getBatteryVoltage(batteryIndex)) : "";
battery_status_device_name_text.setText(gbDevice.getName());
battery_status_device_name_text.setText(gbDevice.getAliasOrName());
battery_status_battery_level_text.setText(level);
battery_status_battery_voltage.setText(voltage);