Add Pebble icon notifications for Gmail, Inbox, and Google Calendar.
parent
d4b29418ca
commit
24c9ef339b
|
@ -47,6 +47,11 @@ public class AppNotificationType extends HashMap<String, NotificationType> {
|
||||||
// Generic Calendar
|
// Generic Calendar
|
||||||
put("com.android.calendar", 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
|
// Conversations
|
||||||
put("eu.siacs.conversations", NotificationType.CONVERSATIONS);
|
put("eu.siacs.conversations", NotificationType.CONVERSATIONS);
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,8 @@ public enum NotificationType {
|
||||||
|
|
||||||
CONVERSATIONS(PebbleIconID.NOTIFICATION_HIPCHAT, PebbleColor.Inchworm),
|
CONVERSATIONS(PebbleIconID.NOTIFICATION_HIPCHAT, PebbleColor.Inchworm),
|
||||||
GENERIC_EMAIL(PebbleIconID.GENERIC_EMAIL, PebbleColor.JaegerGreen),
|
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_NAVIGATION(PebbleIconID.LOCATION, PebbleColor.Orange),
|
||||||
GENERIC_SMS(PebbleIconID.GENERIC_SMS, PebbleColor.VividViolet),
|
GENERIC_SMS(PebbleIconID.GENERIC_SMS, PebbleColor.VividViolet),
|
||||||
GENERIC_CALENDAR(PebbleIconID.TIMELINE_CALENDAR, PebbleColor.Blue),
|
GENERIC_CALENDAR(PebbleIconID.TIMELINE_CALENDAR, PebbleColor.Blue),
|
||||||
|
@ -74,6 +76,9 @@ public enum NotificationType {
|
||||||
case TELEGRAM:
|
case TELEGRAM:
|
||||||
case WHATSAPP:
|
case WHATSAPP:
|
||||||
return "generic_chat";
|
return "generic_chat";
|
||||||
|
case GMAIL:
|
||||||
|
case GOOGLE_INBOX:
|
||||||
|
return "generic_email";
|
||||||
case UNKNOWN:
|
case UNKNOWN:
|
||||||
default:
|
default:
|
||||||
return "generic";
|
return "generic";
|
||||||
|
|
Loading…
Reference in New Issue