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
#### 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
* Fix crash in settings activity with export location

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<changelog>
<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 version="0.24.5" versioncode="122">
<change>Fix crash in settings activity with export location</change>