mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-06 02:07:05 +01:00
parent
715fb67859
commit
c800a18a46
@ -352,11 +352,12 @@ public class NotificationListener extends NotificationListenerService {
|
|||||||
|
|
||||||
dissectNotificationTo(notification, notificationSpec, preferBigText);
|
dissectNotificationTo(notification, notificationSpec, preferBigText);
|
||||||
|
|
||||||
if (!checkNotificationContentForWhiteAndBlackList(sbn.getPackageName().toLowerCase(), notificationSpec.body)) {
|
if (notificationSpec.body != null) {
|
||||||
return;
|
if (!checkNotificationContentForWhiteAndBlackList(sbn.getPackageName().toLowerCase(), notificationSpec.body)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ignore Gadgetbridge's very own notifications, except for those from the debug screen
|
// ignore Gadgetbridge's very own notifications, except for those from the debug screen
|
||||||
if (getApplicationContext().getPackageName().equals(source)) {
|
if (getApplicationContext().getPackageName().equals(source)) {
|
||||||
if (!getApplicationContext().getString(R.string.test_notification).equals(notificationSpec.title)) {
|
if (!getApplicationContext().getString(R.string.test_notification).equals(notificationSpec.title)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user