mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-07-04 03:52:02 +02:00
Garmin: Send all notification types as foreground
Sending notifications for some apps is unexpected for most users, which was generating some bug reports. For now, send all notifications as foreground, at least until we can make what is happening more clear or configurable.
This commit is contained in:
parent
a574475951
commit
12b3ff34e2
|
@ -104,7 +104,9 @@ public class NotificationUpdateMessage extends GFDIMessage {
|
|||
case "generic_social":
|
||||
case "generic_alarm_clock":
|
||||
case "generic":
|
||||
flags.add(NotificationFlag.BACKGROUND);
|
||||
// TODO: Maybe make this configurable, but most users expect all notifications
|
||||
// to be foreground, sending them as background was generating bug reports.
|
||||
flags.add(NotificationFlag.FOREGROUND);
|
||||
}
|
||||
return (int) EnumUtils.generateBitVector(NotificationFlag.class, flags);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user