From 69fae56a8c2fca20b9eef975bf9b20068f0b1433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sat, 15 Jun 2024 21:31:07 +0100 Subject: [PATCH] Fix battery icon when device connected --- .../gadgetbridge/activities/BatteryInfoActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/BatteryInfoActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/BatteryInfoActivity.java index 6b2986e8b..dac71e1f0 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/BatteryInfoActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/BatteryInfoActivity.java @@ -200,9 +200,9 @@ public class BatteryInfoActivity extends AbstractGBActivity { } if (batteryConfig.getBatteryIcon() != GBDevice.BATTERY_ICON_DEFAULT) { battery_status_device_icon.setImageResource(batteryConfig.getBatteryIcon()); - } - if (gbDevice.isInitialized()) { - battery_status_device_icon.setColorFilter(this.getResources().getColor(R.color.accent)); + if (gbDevice.isInitialized()) { + battery_status_device_icon.setColorFilter(this.getResources().getColor(R.color.accent)); + } } } }