From 429d717630a9454252eea54327d81add03d4afaa Mon Sep 17 00:00:00 2001 From: MrYoranimo Date: Tue, 19 Dec 2023 15:02:09 +0100 Subject: [PATCH] Xiaomi: recognize a full battery as a valid charger state --- .../service/devices/xiaomi/services/XiaomiSystemService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/services/XiaomiSystemService.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/services/XiaomiSystemService.java index b83edd108..db8a6d1bf 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/services/XiaomiSystemService.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/services/XiaomiSystemService.java @@ -324,6 +324,7 @@ public class XiaomiSystemService extends AbstractXiaomiService implements Xiaomi case 1: return BatteryState.BATTERY_CHARGING; case 2: + case 3: return BatteryState.BATTERY_NORMAL; }