1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01:00

Prefer big text for Gmail notifications

This commit is contained in:
José Rebelo 2022-08-25 14:12:25 +01:00 committed by Gitea
parent 1a472493c7
commit a02d54523a

View File

@ -343,8 +343,6 @@ public class NotificationListener extends NotificationListenerService {
notificationSpec.sourceName = name;
}
boolean preferBigText = false;
// Get the app ID that generated this notification. For now only used by pebble color, but may be more useful later.
notificationSpec.sourceAppId = source;
@ -359,7 +357,6 @@ public class NotificationListener extends NotificationListenerService {
LOG.info("ignore K9 group summary");
return;
}
preferBigText = true;
}
if (notificationSpec.type == null) {
@ -371,6 +368,8 @@ public class NotificationListener extends NotificationListenerService {
LOG.info("Processing notification " + notificationSpec.getId() + " age: " + (System.currentTimeMillis() - notification.when) + " from source " + source + " with flags: " + notification.flags);
boolean preferBigText = source.startsWith("com.fsck.k9") || source.equals("com.google.android.gm");
dissectNotificationTo(notification, notificationSpec, preferBigText);
if (notificationSpec.body != null) {