1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-06 18:27:02 +01:00

Added notification type for threema app

This commit is contained in:
Lukas Veneziano 2017-12-27 08:59:09 +01:00 committed by Andreas Shimokawa
parent cad9e4ddd0
commit 6b339a3013
5 changed files with 11 additions and 3 deletions

View File

@ -69,6 +69,9 @@ public class AppNotificationType extends HashMap<String, NotificationType> {
// Telegram
put("org.telegram.messenger", NotificationType.TELEGRAM);
// Threema
put("ch.threema.app", NotificationType.TELEGRAM);
// Twitter
put("org.mariotaku.twidere", NotificationType.TWITTER);
put("com.twitter.android", NotificationType.TWITTER);

View File

@ -56,7 +56,8 @@ public enum NotificationType {
SKYPE(PebbleIconID.NOTIFICATION_SKYPE, PebbleColor.VividCerulean),
SLACK(PebbleIconID.NOTIFICATION_SLACK, PebbleColor.Folly),
SNAPCHAT(PebbleIconID.NOTIFICATION_SNAPCHAT, PebbleColor.Icterine),
TELEGRAM(PebbleIconID.NOTIFICATION_TELEGRAM, PebbleColor.VividCerulean),
TELEGRAM(PebbleIconID.NOTIFICATION_TELEGRAM, PebbleColor.JaegerGreen),
THREEMA(PebbleIconID.NOTIFICATION_HIPCHAT, PebbleColor.VividCerulean),
TRANSIT(PebbleIconID.LOCATION, PebbleColor.JaegerGreen),
TWITTER(PebbleIconID.NOTIFICATION_TWITTER, PebbleColor.BlueMoon),
VIBER(PebbleIconID.NOTIFICATION_VIBER, PebbleColor.VividViolet),
@ -101,6 +102,7 @@ public enum NotificationType {
case RIOT:
case SIGNAL:
case TELEGRAM:
case THREEMA:
case WHATSAPP:
case GOOGLE_MESSENGER:
case GOOGLE_HANGOUTS:

View File

@ -288,6 +288,7 @@ public class BLETypeConversions {
case SKYPE:
case SNAPCHAT:
case TELEGRAM:
case THREEMA:
case TWITTER:
case WHATSAPP:
case VIBER:

View File

@ -60,7 +60,6 @@ public class HuamiIcon {
public static final byte WEATHER = 35;
public static final byte HR_WARNING_36 = 36;
public static byte mapToIconId(NotificationType type) {
switch (type) {
case UNKNOWN:
@ -104,6 +103,8 @@ public class HuamiIcon {
return SNAPCHAT;
case TELEGRAM:
return TELEGRAM;
case THREEMA:
return CHAT_BLUE_13;
case VIBER:
return VIBER;
case WECHAT:

View File

@ -46,6 +46,7 @@ public class NotificationUtils {
case SKYPE:
case SNAPCHAT:
case TELEGRAM:
case THREEMA:
case TWITTER:
case WHATSAPP:
case VIBER: