1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Add title check as well to notification filter

This commit is contained in:
gnufella 2022-09-06 09:39:02 +02:00 committed by Gitea
parent bf7446abe9
commit 29e0879381

View File

@ -375,7 +375,7 @@ public class NotificationListener extends NotificationListenerService {
dissectNotificationTo(notification, notificationSpec, preferBigText);
if (notificationSpec.body != null) {
if (!checkNotificationContentForWhiteAndBlackList(sbn.getPackageName().toLowerCase(), notificationSpec.body)) {
if (!checkNotificationContentForWhiteAndBlackList(sbn.getPackageName().toLowerCase(), notificationSpec.title + " " + notificationSpec.body)) {
return;
}
}