Pebble: use telegram icon for telegram messages
also use the facebook icon for the official facebook app (untested because we would never use facebook)
This commit is contained in:
parent
28a1768f32
commit
8080734470
|
@ -265,6 +265,11 @@ public class NotificationListener extends NotificationListenerService {
|
||||||
case "org.thoughtcrime.securesms":
|
case "org.thoughtcrime.securesms":
|
||||||
notificationSpec.type = NotificationType.CHAT;
|
notificationSpec.type = NotificationType.CHAT;
|
||||||
break;
|
break;
|
||||||
|
case "org.telegram.messenger":
|
||||||
|
notificationSpec.type = NotificationType.TELEGRAM;
|
||||||
|
break;
|
||||||
|
case "com.facebook.orca":
|
||||||
|
case "com.facebook.katana":
|
||||||
case "org.indywidualni.fblite":
|
case "org.indywidualni.fblite":
|
||||||
notificationSpec.type = NotificationType.FACEBOOK;
|
notificationSpec.type = NotificationType.FACEBOOK;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -9,4 +9,5 @@ public enum NotificationType {
|
||||||
FACEBOOK,
|
FACEBOOK,
|
||||||
SMS,
|
SMS,
|
||||||
TWITTER,
|
TWITTER,
|
||||||
|
TELEGRAM,
|
||||||
}
|
}
|
||||||
|
|
|
@ -854,6 +854,10 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
||||||
icon_id = PebbleIconID.NOTIFICATION_HIPCHAT;
|
icon_id = PebbleIconID.NOTIFICATION_HIPCHAT;
|
||||||
color_id = PebbleColor.Inchworm;
|
color_id = PebbleColor.Inchworm;
|
||||||
break;
|
break;
|
||||||
|
case TELEGRAM:
|
||||||
|
icon_id = PebbleIconID.NOTIFICATION_TELEGRAM;
|
||||||
|
color_id = PebbleColor.PictonBlue;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
icon_id = PebbleIconID.NOTIFICATION_GENERIC;
|
icon_id = PebbleIconID.NOTIFICATION_GENERIC;
|
||||||
color_id = PebbleColor.Red;
|
color_id = PebbleColor.Red;
|
||||||
|
|
Loading…
Reference in New Issue