Merge pull request #489 from hackoder/master

Show K9 message body in notifications
This commit is contained in:
Andreas Shimokawa
2017-01-05 17:14:09 +01:00
committed by GitHub

View File

@@ -252,6 +252,10 @@ public class NotificationListener extends NotificationListenerService {
notificationSpec.type = AppNotificationType.getInstance().get(source); notificationSpec.type = AppNotificationType.getInstance().get(source);
if (source.equals("com.fsck.k9")) {
preferBigText = true;
}
if (notificationSpec.type == null) { if (notificationSpec.type == null) {
notificationSpec.type = NotificationType.UNKNOWN; notificationSpec.type = NotificationType.UNKNOWN;
} }