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:
Andreas Shimokawa 2016-09-21 21:31:23 +02:00
parent 28a1768f32
commit 8080734470
3 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -9,4 +9,5 @@ public enum NotificationType {
FACEBOOK,
SMS,
TWITTER,
TELEGRAM,
}

View File

@ -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;