From 28ff99f534d61827c4f0d4da75051cfbbd755d54 Mon Sep 17 00:00:00 2001 From: Daniel Dakhno Date: Fri, 11 Oct 2019 03:49:59 +0200 Subject: [PATCH] adjusted to use custom icon --- .../gadgetbridge/service/devices/qhybrid/QHybridSupport.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/QHybridSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/QHybridSupport.java index 0ddf6b63c..8b58df75e 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/QHybridSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/QHybridSupport.java @@ -32,6 +32,7 @@ import java.util.UUID; import androidx.localbroadcastmanager.content.LocalBroadcastManager; +import nodomain.freeyourgadget.gadgetbridge.R; import nodomain.freeyourgadget.gadgetbridge.deviceevents.GBDeviceEventBatteryInfo; import nodomain.freeyourgadget.gadgetbridge.devices.DeviceManager; import nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.PackageConfig; @@ -180,6 +181,9 @@ public class QHybridSupport extends QHybridBaseSupport { protected TransactionBuilder initializeDevice(TransactionBuilder builder) { builder.add(new SetDeviceStateAction(getDevice(), GBDevice.State.INITIALIZING, getContext())); + getDevice().setNotificationIconConnected(R.drawable.ic_notification_qhybrid); + getDevice().setNotificationIconDisconnected(R.drawable.ic_notification_disconnected_qhybrid); + for (int i = 2; i <= 7; i++) builder.notify(getCharacteristic(UUID.fromString("3dda000" + i + "-957f-7d4a-34a6-74696673696d")), true);