mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Add Thunderbird support
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
* Prevent crash on devices without GPS
|
||||
* Xiaomi-protobuf: Fix alarm notifications
|
||||
* Xiaomi-protobuf: Fix watchface management
|
||||
* Recognize Thunderbird for Android as email and ignore its summary notifications
|
||||
|
||||
#### 0.91.1
|
||||
|
||||
|
||||
+2
-2
@@ -482,9 +482,9 @@ public class NotificationListener extends NotificationListenerService {
|
||||
notificationSpec.category = notification.category;
|
||||
|
||||
//FIXME: some quirks lookup table would be the minor evil here
|
||||
if (source.startsWith("com.fsck.k9")) {
|
||||
if (source.startsWith("com.fsck.k9") || source.startsWith("net.thunderbird.android")) {
|
||||
if (NotificationCompat.isGroupSummary(notification)) {
|
||||
LOG.info("ignore K9 group summary");
|
||||
LOG.info("ignore K9/Thunderbird group summary");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,10 @@ public class AppNotificationType extends HashMap<String, NotificationType> {
|
||||
put("ch.protonmail.android", NotificationType.GENERIC_EMAIL);
|
||||
put("security.pEp", NotificationType.GENERIC_EMAIL);
|
||||
put("eu.faircode.email", NotificationType.GENERIC_EMAIL);
|
||||
put("net.thunderbird.android", NotificationType.GENERIC_EMAIL);
|
||||
put("net.thunderbird.android.beta", NotificationType.GENERIC_EMAIL);
|
||||
put("net.thunderbird.android.daily", NotificationType.GENERIC_EMAIL);
|
||||
put("net.thunderbird.android.debug", NotificationType.GENERIC_EMAIL);
|
||||
|
||||
// Generic SMS
|
||||
put("com.moez.QKSMS", NotificationType.GENERIC_SMS);
|
||||
|
||||
Reference in New Issue
Block a user