1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 04:46:51 +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); 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 // we dont want group summaries at all for k9
if ((notification.flags & Notification.FLAG_GROUP_SUMMARY) == Notification.FLAG_GROUP_SUMMARY) { if ((notification.flags & Notification.FLAG_GROUP_SUMMARY) == Notification.FLAG_GROUP_SUMMARY) {
return; return;

View File

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