1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-24 01:25:50 +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
#### Version next
* Display the chat icon for notifications coming from the Kontalk app
#### Version 0.24.5
* Fix crash in settings activity with export location
* Fix notification deletion regression

View File

@ -76,6 +76,9 @@ public class AppNotificationType extends HashMap<String, NotificationType> {
// Threema
put("ch.threema.app", NotificationType.THREEMA);
// Kontalk
put("org.kontalk", NotificationType.KONTALK);
// Twitter
put("org.mariotaku.twidere", NotificationType.TWITTER);
put("com.twitter.android", NotificationType.TWITTER);

View File

@ -59,6 +59,7 @@ public enum NotificationType {
SNAPCHAT(PebbleIconID.NOTIFICATION_SNAPCHAT, PebbleColor.Icterine),
TELEGRAM(PebbleIconID.NOTIFICATION_TELEGRAM, PebbleColor.VividCerulean),
THREEMA(PebbleIconID.NOTIFICATION_HIPCHAT, PebbleColor.JaegerGreen),
KONTALK(PebbleIconID.NOTIFICATION_HIPCHAT, PebbleColor.JaegerGreen),
TRANSIT(PebbleIconID.LOCATION, PebbleColor.JaegerGreen),
TWITTER(PebbleIconID.NOTIFICATION_TWITTER, PebbleColor.BlueMoon),
VIBER(PebbleIconID.NOTIFICATION_VIBER, PebbleColor.VividViolet),
@ -104,6 +105,7 @@ public enum NotificationType {
case SIGNAL:
case TELEGRAM:
case THREEMA:
case KONTALK:
case WHATSAPP:
case GOOGLE_MESSENGER:
case GOOGLE_HANGOUTS:

View File

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

View File

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

View File

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

View File

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<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">
<change>Fix crash in settings activity with export location</change>
<change>Fix notification deletion regression</change>