1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-29 12:05:53 +01:00

support material fork of K9

This commit is contained in:
Andreas Shimokawa 2017-03-16 17:24:15 +01:00
parent 408dd9c26f
commit 7a6b0ed2b0
2 changed files with 2 additions and 1 deletions

View File

@ -265,7 +265,7 @@ public class NotificationListener extends NotificationListenerService {
notificationSpec.type = AppNotificationType.getInstance().get(source);
if (source.equals("com.fsck.k9")) {
if (source.startsWith("com.fsck.k9")) {
// we dont want group summaries at all for k9
if ((notification.flags & Notification.FLAG_GROUP_SUMMARY) == Notification.FLAG_GROUP_SUMMARY) {
return;

View File

@ -33,6 +33,7 @@ public class AppNotificationType extends HashMap<String, NotificationType> {
private AppNotificationType() {
// Generic Email
put("com.fsck.k9", NotificationType.GENERIC_EMAIL);
put("com.fsck.k9.material", NotificationType.GENERIC_EMAIL);
put("com.imaeses.squeaky", NotificationType.GENERIC_EMAIL);
put("com.android.email", NotificationType.GENERIC_EMAIL);