1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-23 18:36:50 +01:00

Add Antox to the chat applications.

Notifications coming from the chat.tox.antox package are treated as chat
messages. This closes #910
This commit is contained in:
Daniele Gobbetti 2018-02-17 17:39:15 +01:00
parent 48b89f1bd2
commit 4f246b3ed9
7 changed files with 10 additions and 2 deletions

View File

@ -1,7 +1,7 @@
### Changelog ### Changelog
#### Version next #### Version next
* Display the chat icon for notifications coming from the Kontalk app * Display the chat icon for notifications coming from Kontalk and Antox
#### Version 0.24.5 #### Version 0.24.5
* Fix crash in settings activity with export location * Fix crash in settings activity with export location

View File

@ -79,6 +79,9 @@ public class AppNotificationType extends HashMap<String, NotificationType> {
// Kontalk // Kontalk
put("org.kontalk", NotificationType.KONTALK); put("org.kontalk", NotificationType.KONTALK);
// Antox
put("chat.tox.antox", NotificationType.ANTOX);
// Twitter // Twitter
put("org.mariotaku.twidere", NotificationType.TWITTER); put("org.mariotaku.twidere", NotificationType.TWITTER);
put("com.twitter.android", NotificationType.TWITTER); put("com.twitter.android", NotificationType.TWITTER);

View File

@ -60,6 +60,7 @@ public enum NotificationType {
TELEGRAM(PebbleIconID.NOTIFICATION_TELEGRAM, PebbleColor.VividCerulean), TELEGRAM(PebbleIconID.NOTIFICATION_TELEGRAM, PebbleColor.VividCerulean),
THREEMA(PebbleIconID.NOTIFICATION_HIPCHAT, PebbleColor.JaegerGreen), THREEMA(PebbleIconID.NOTIFICATION_HIPCHAT, PebbleColor.JaegerGreen),
KONTALK(PebbleIconID.NOTIFICATION_HIPCHAT, PebbleColor.JaegerGreen), KONTALK(PebbleIconID.NOTIFICATION_HIPCHAT, PebbleColor.JaegerGreen),
ANTOX(PebbleIconID.NOTIFICATION_HIPCHAT, PebbleColor.JaegerGreen),
TRANSIT(PebbleIconID.LOCATION, PebbleColor.JaegerGreen), TRANSIT(PebbleIconID.LOCATION, PebbleColor.JaegerGreen),
TWITTER(PebbleIconID.NOTIFICATION_TWITTER, PebbleColor.BlueMoon), TWITTER(PebbleIconID.NOTIFICATION_TWITTER, PebbleColor.BlueMoon),
VIBER(PebbleIconID.NOTIFICATION_VIBER, PebbleColor.VividViolet), VIBER(PebbleIconID.NOTIFICATION_VIBER, PebbleColor.VividViolet),
@ -106,6 +107,7 @@ public enum NotificationType {
case TELEGRAM: case TELEGRAM:
case THREEMA: case THREEMA:
case KONTALK: case KONTALK:
case ANTOX:
case WHATSAPP: case WHATSAPP:
case GOOGLE_MESSENGER: case GOOGLE_MESSENGER:
case GOOGLE_HANGOUTS: case GOOGLE_HANGOUTS:

View File

@ -290,6 +290,7 @@ public class BLETypeConversions {
case TELEGRAM: case TELEGRAM:
case THREEMA: case THREEMA:
case KONTALK: case KONTALK:
case ANTOX:
case TWITTER: case TWITTER:
case WHATSAPP: case WHATSAPP:
case VIBER: case VIBER:

View File

@ -68,6 +68,7 @@ public class HuamiIcon {
case RIOT: case RIOT:
case HIPCHAT: case HIPCHAT:
case KONTALK: case KONTALK:
case ANTOX:
return WECHAT; return WECHAT;
case GENERIC_EMAIL: case GENERIC_EMAIL:
case GMAIL: case GMAIL:

View File

@ -48,6 +48,7 @@ public class NotificationUtils {
case TELEGRAM: case TELEGRAM:
case THREEMA: case THREEMA:
case KONTALK: case KONTALK:
case ANTOX:
case TWITTER: case TWITTER:
case WHATSAPP: case WHATSAPP:
case VIBER: case VIBER:

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<changelog> <changelog>
<release version="next"> <release version="next">
<change>Display the chat icon for notifications coming from the Kontalk app</change> <change>Display the chat icon for notifications coming from Kontalk and Antox</change>
</release> </release>
<release version="0.24.5" versioncode="122"> <release version="0.24.5" versioncode="122">
<change>Fix crash in settings activity with export location</change> <change>Fix crash in settings activity with export location</change>