From 0ba377bb42f170bb120ead87df72a2a195f2db3e Mon Sep 17 00:00:00 2001 From: Hasan Ammar Date: Mon, 2 Jan 2017 19:03:02 -0500 Subject: [PATCH] Show K9 message body in notifications --- .../gadgetbridge/externalevents/NotificationListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java index b033c7411..130ea7d58 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java @@ -252,6 +252,10 @@ public class NotificationListener extends NotificationListenerService { notificationSpec.type = AppNotificationType.getInstance().get(source); + if (source.equals("com.fsck.k9")) { + preferBigText = true; + } + if (notificationSpec.type == null) { notificationSpec.type = NotificationType.UNKNOWN; }