Add Pebble icon notifications for Gmail, Inbox, and Google Calendar.

master
AnthonyDiGirolamo 2017-08-27 19:21:45 -07:00 committed by Andreas Shimokawa
parent d4b29418ca
commit 24c9ef339b
2 changed files with 10 additions and 0 deletions

View File

@ -47,6 +47,11 @@ public class AppNotificationType extends HashMap<String, NotificationType> {
// Generic Calendar
put("com.android.calendar", NotificationType.GENERIC_CALENDAR);
// Google
put("com.google.android.gm", NotificationType.GMAIL);
put("com.google.android.apps.inbox", NotificationType.GOOGLE_INBOX);
put("com.google.android.calendar", NotificationType.GENERIC_CALENDAR);
// Conversations
put("eu.siacs.conversations", NotificationType.CONVERSATIONS);

View File

@ -27,6 +27,8 @@ public enum NotificationType {
CONVERSATIONS(PebbleIconID.NOTIFICATION_HIPCHAT, PebbleColor.Inchworm),
GENERIC_EMAIL(PebbleIconID.GENERIC_EMAIL, PebbleColor.JaegerGreen),
GMAIL(PebbleIconID.NOTIFICATION_GMAIL, PebbleColor.Red),
GOOGLE_INBOX(PebbleIconID.NOTIFICATION_GOOGLE_INBOX, PebbleColor.Blue),
GENERIC_NAVIGATION(PebbleIconID.LOCATION, PebbleColor.Orange),
GENERIC_SMS(PebbleIconID.GENERIC_SMS, PebbleColor.VividViolet),
GENERIC_CALENDAR(PebbleIconID.TIMELINE_CALENDAR, PebbleColor.Blue),
@ -74,6 +76,9 @@ public enum NotificationType {
case TELEGRAM:
case WHATSAPP:
return "generic_chat";
case GMAIL:
case GOOGLE_INBOX:
return "generic_email";
case UNKNOWN:
default:
return "generic";