1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 13:26:50 +01:00

Fix forgotten batteryState index

This commit is contained in:
Daniele Gobbetti 2021-10-31 17:13:41 +01:00 committed by vanous
parent 80207b34bc
commit 1ce0cd683e

View File

@ -159,7 +159,7 @@ public class GBDeviceAdapterv2 extends RecyclerView.Adapter<GBDeviceAdapterv2.Vi
int batteryLevel = device.getBatteryLevel(battery);
float batteryVoltage = device.getBatteryVoltage(battery);
BatteryState batteryState = device.getBatteryState();
BatteryState batteryState = device.getBatteryState(battery);
if (batteryLevel != GBDevice.BATTERY_UNKNOWN) {
batteryStatusBoxes[battery].setVisibility(View.VISIBLE);