2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 14:15:14 +00:00

Do not send the group summary notifications

Reviewed by Aleix Pol
This commit is contained in:
Albert Vaca
2018-03-15 23:47:35 +01:00
parent 2962ebf61f
commit 5a0b5673ed

View File

@@ -40,6 +40,7 @@ import android.os.Bundle;
import android.provider.Settings;
import android.service.notification.StatusBarNotification;
import android.support.annotation.RequiresApi;
import android.support.v4.app.NotificationCompat;
import android.util.Log;
import org.kde.kdeconnect.Helpers.AppsHelper;
@@ -165,7 +166,9 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver.
if ((notification.flags & Notification.FLAG_FOREGROUND_SERVICE) != 0
|| (notification.flags & Notification.FLAG_ONGOING_EVENT) != 0
|| (notification.flags & Notification.FLAG_LOCAL_ONLY) != 0) {
|| (notification.flags & Notification.FLAG_LOCAL_ONLY) != 0
|| (notification.flags & NotificationCompat.FLAG_GROUP_SUMMARY) != 0) //The notification that groups other notifications
{
//This is not a notification we want!
return;
}