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:
parent
80207b34bc
commit
1ce0cd683e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user