mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
support material fork of K9
This commit is contained in:
parent
408dd9c26f
commit
7a6b0ed2b0
@ -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;
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user