mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-02 07:05:09 +00:00
Separate group also for the persistent notification
Without this, when receiving a new notification on phones with ambient display the notification shown there is the persistent notification instead of the new notification received.
This commit is contained in:
@@ -298,6 +298,7 @@ public class BackgroundService extends Service {
|
|||||||
.setPriority(NotificationCompat.PRIORITY_MIN) //MIN so it's not shown in the status bar before Oreo, on Oreo it will be bumped to LOW
|
.setPriority(NotificationCompat.PRIORITY_MIN) //MIN so it's not shown in the status bar before Oreo, on Oreo it will be bumped to LOW
|
||||||
.setShowWhen(false)
|
.setShowWhen(false)
|
||||||
.setAutoCancel(false);
|
.setAutoCancel(false);
|
||||||
|
notification.setGroup("BackgroundService");
|
||||||
|
|
||||||
ArrayList<String> connectedDevices = new ArrayList<>();
|
ArrayList<String> connectedDevices = new ArrayList<>();
|
||||||
for (Device device : getDevices().values()) {
|
for (Device device : getDevices().values()) {
|
||||||
|
Reference in New Issue
Block a user