1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-09 07:01:33 +02:00

Forward notifications marked as local only if they are emitted by skype

Also add skype for business package name.

Blind implementation as I don't have access to these apps.

Fixes #1109
This commit is contained in:
Daniele Gobbetti 2018-06-18 20:52:26 +02:00
parent 4d0020ae1d
commit 2ca8e4a4e4
2 changed files with 5 additions and 1 deletions

View File

@ -446,7 +446,8 @@ public class NotificationListener extends NotificationListenerService {
//some Apps always mark their notifcations as read-only
if (NotificationCompat.getLocalOnly(notification) &&
type != NotificationType.WECHAT &&
type != NotificationType.OUTLOOK) {
type != NotificationType.OUTLOOK &&
type != NotificationType.SKYPE) { //see https://github.com/Freeyourgadget/Gadgetbridge/issues/1109
return true;
}

View File

@ -109,6 +109,9 @@ public class AppNotificationType extends HashMap<String, NotificationType> {
// Skype
put("com.skype.raider", NotificationType.SKYPE);
// Skype for business
put("com.microsoft.office.lync15", NotificationType.SKYPE);
// Mailbox
put("com.mailboxapp", NotificationType.MAILBOX);