From 7262197a34c4f9007273161c8ee58bc031f8e366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Tue, 13 Jun 2023 22:37:35 +0100 Subject: [PATCH] BTBR: Fix device update intent subject on connection change --- .../freeyourgadget/gadgetbridge/service/btbr/BtBRQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btbr/BtBRQueue.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btbr/BtBRQueue.java index 5eeb57c9b..3cfbf6da6 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btbr/BtBRQueue.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btbr/BtBRQueue.java @@ -232,7 +232,7 @@ public final class BtBRQueue { protected void setDeviceConnectionState(GBDevice.State newState) { LOG.debug("New device connection state: " + newState); mGbDevice.setState(newState); - mGbDevice.sendDeviceUpdateIntent(mContext, GBDevice.DeviceUpdateSubject.DEVICE_STATE); + mGbDevice.sendDeviceUpdateIntent(mContext, GBDevice.DeviceUpdateSubject.CONNECTION_STATE); } public void dispose() {