mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Use device alias on battery info activity
This commit is contained in:
parent
04236a3f86
commit
3e6d2bd40e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user