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":
|
||||
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;
|
||||
|
|
|
@ -9,4 +9,5 @@ public enum NotificationType {
|
|||
FACEBOOK,
|
||||
SMS,
|
||||
TWITTER,
|
||||
TELEGRAM,
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue