mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-27 20:36:51 +01:00
Map a few more apps to NotificationKind
This commit is contained in:
parent
4f80844016
commit
a73beceb44
@ -156,16 +156,26 @@ public class NotificationListener extends NotificationListenerService {
|
|||||||
|
|
||||||
// Set application icons for generic notifications
|
// Set application icons for generic notifications
|
||||||
NotificationKind notificationKind;
|
NotificationKind notificationKind;
|
||||||
if (source.equals("org.mariotaku.twidere") ||
|
switch (source) {
|
||||||
source.equals("com.twitter.android") ||
|
case "org.mariotaku.twidere":
|
||||||
source.equals("org.andstatus.app")) {
|
case "com.twitter.android":
|
||||||
|
case "org.andstatus.app":
|
||||||
|
case "org.mustard.android":
|
||||||
notificationKind = NotificationKind.TWITTER;
|
notificationKind = NotificationKind.TWITTER;
|
||||||
} else if (source.equals("com.fsck.k9")) {
|
break;
|
||||||
|
case "com.fsck.k9":
|
||||||
|
case "com.android.email":
|
||||||
notificationKind = NotificationKind.EMAIL;
|
notificationKind = NotificationKind.EMAIL;
|
||||||
} else if (source.equals("eu.siacs.conversations")) {
|
break;
|
||||||
|
case "eu.siacs.conversations":
|
||||||
notificationKind = NotificationKind.CHAT;
|
notificationKind = NotificationKind.CHAT;
|
||||||
} else {
|
break;
|
||||||
|
case "org.indywidualni.fblite":
|
||||||
|
notificationKind = NotificationKind.FACEBOOK;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
notificationKind = NotificationKind.UNDEFINED;
|
notificationKind = NotificationKind.UNDEFINED;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG.info("Processing notification from source " + source);
|
LOG.info("Processing notification from source " + source);
|
||||||
|
Loading…
Reference in New Issue
Block a user