diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java index 0c07eee6..d7a4d0ea 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java @@ -265,6 +265,11 @@ public class NotificationListener extends NotificationListenerService { case "org.thoughtcrime.securesms": notificationSpec.type = NotificationType.CHAT; break; + case "org.telegram.messenger": + notificationSpec.type = NotificationType.TELEGRAM; + break; + case "com.facebook.orca": + case "com.facebook.katana": case "org.indywidualni.fblite": notificationSpec.type = NotificationType.FACEBOOK; break; diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/NotificationType.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/NotificationType.java index 63feca89..49c9cd24 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/NotificationType.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/NotificationType.java @@ -9,4 +9,5 @@ public enum NotificationType { FACEBOOK, SMS, TWITTER, + TELEGRAM, } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleProtocol.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleProtocol.java index 61a974d4..a4ab599d 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleProtocol.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleProtocol.java @@ -854,6 +854,10 @@ public class PebbleProtocol extends GBDeviceProtocol { icon_id = PebbleIconID.NOTIFICATION_HIPCHAT; color_id = PebbleColor.Inchworm; break; + case TELEGRAM: + icon_id = PebbleIconID.NOTIFICATION_TELEGRAM; + color_id = PebbleColor.PictonBlue; + break; default: icon_id = PebbleIconID.NOTIFICATION_GENERIC; color_id = PebbleColor.Red;