1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-03 17:02:13 +01:00

Add Kontalk to the chat applications.

Notifications coming from the org.kontalk package are treated as chat
messages. This closes #994
This commit is contained in:
Daniele Gobbetti 2018-02-17 17:33:34 +01:00
parent 4d7c697497
commit 48b89f1bd2
7 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,8 @@
### Changelog ### Changelog
#### Version next
* Display the chat icon for notifications coming from the Kontalk app
#### Version 0.24.5 #### Version 0.24.5
* Fix crash in settings activity with export location * Fix crash in settings activity with export location
* Fix notification deletion regression * Fix notification deletion regression

View File

@ -76,6 +76,9 @@ public class AppNotificationType extends HashMap<String, NotificationType> {
// Threema // Threema
put("ch.threema.app", NotificationType.THREEMA); put("ch.threema.app", NotificationType.THREEMA);
// Kontalk
put("org.kontalk", NotificationType.KONTALK);
// 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

@ -59,6 +59,7 @@ public enum NotificationType {
SNAPCHAT(PebbleIconID.NOTIFICATION_SNAPCHAT, PebbleColor.Icterine), SNAPCHAT(PebbleIconID.NOTIFICATION_SNAPCHAT, PebbleColor.Icterine),
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),
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),
@ -104,6 +105,7 @@ public enum NotificationType {
case SIGNAL: case SIGNAL:
case TELEGRAM: case TELEGRAM:
case THREEMA: case THREEMA:
case KONTALK:
case WHATSAPP: case WHATSAPP:
case GOOGLE_MESSENGER: case GOOGLE_MESSENGER:
case GOOGLE_HANGOUTS: case GOOGLE_HANGOUTS:

View File

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

View File

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

View File

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

View File

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<changelog> <changelog>
<release version="next">
<change>Display the chat icon for notifications coming from the Kontalk app</change>
</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>
<change>Fix notification deletion regression</change> <change>Fix notification deletion regression</change>