mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 18:45:49 +01:00
parent
9cedf63a5a
commit
20208ca7a3
@ -441,10 +441,12 @@ public class NotificationListener extends NotificationListenerService {
|
|||||||
|
|
||||||
NotificationType type = AppNotificationType.getInstance().get(source);
|
NotificationType type = AppNotificationType.getInstance().get(source);
|
||||||
//ignore notifications marked as LocalOnly https://developer.android.com/reference/android/app/Notification.html#FLAG_LOCAL_ONLY
|
//ignore notifications marked as LocalOnly https://developer.android.com/reference/android/app/Notification.html#FLAG_LOCAL_ONLY
|
||||||
|
//some Apps always mark their notifcations as read-only
|
||||||
if (NotificationCompat.getLocalOnly(notification) &&
|
if (NotificationCompat.getLocalOnly(notification) &&
|
||||||
//WeChat always marks its notifications as LocalOnly, do not ignore them
|
type != NotificationType.WECHAT &&
|
||||||
type != NotificationType.WECHAT)
|
type != NotificationType.OUTLOOK) {
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
Prefs prefs = GBApplication.getPrefs();
|
Prefs prefs = GBApplication.getPrefs();
|
||||||
if (!prefs.getBoolean("notifications_generic_whenscreenon", false)) {
|
if (!prefs.getBoolean("notifications_generic_whenscreenon", false)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user