1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00

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
commit 380e3b3640

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;
} }