mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-27 20:36:51 +01:00
Added notification type for threema app
This commit is contained in:
parent
cad9e4ddd0
commit
6b339a3013
@ -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);
|
||||
|
@ -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:
|
||||
|
@ -288,6 +288,7 @@ public class BLETypeConversions {
|
||||
case SKYPE:
|
||||
case SNAPCHAT:
|
||||
case TELEGRAM:
|
||||
case THREEMA:
|
||||
case TWITTER:
|
||||
case WHATSAPP:
|
||||
case VIBER:
|
||||
|
@ -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:
|
||||
@ -115,4 +116,4 @@ public class HuamiIcon {
|
||||
}
|
||||
return APP_11;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -46,6 +46,7 @@ public class NotificationUtils {
|
||||
case SKYPE:
|
||||
case SNAPCHAT:
|
||||
case TELEGRAM:
|
||||
case THREEMA:
|
||||
case TWITTER:
|
||||
case WHATSAPP:
|
||||
case VIBER:
|
||||
|
Loading…
Reference in New Issue
Block a user