From b8442194b241296cca4d473e8b705868bda4dd8b Mon Sep 17 00:00:00 2001 From: tom79 Date: Fri, 1 Nov 2019 10:22:14 +0100 Subject: [PATCH] Fix grouped notifications --- .../app/fedilab/android/helper/Helper.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/helper/Helper.java b/app/src/main/java/app/fedilab/android/helper/Helper.java index 9671aac3f..17cf7be6c 100644 --- a/app/src/main/java/app/fedilab/android/helper/Helper.java +++ b/app/src/main/java/app/fedilab/android/helper/Helper.java @@ -1303,17 +1303,17 @@ public class Helper { notificationBuilder.setLargeIcon(icon); notificationManager.notify(notificationId, notificationBuilder.build()); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { - Notification summaryNotification = - new NotificationCompat.Builder(context, channelId) - .setContentTitle(account.getAcct() + "@" + account.getInstance()) - .setContentText(channelTitle) - .setSmallIcon(getNotificationIcon(context)) - .setGroup(account.getAcct() + "@" + account.getInstance()) - .setGroupSummary(true) - .build(); - notificationManager.notify(0, summaryNotification); - } + Notification summaryNotification = + new NotificationCompat.Builder(context, channelId) + .setContentTitle(title) + .setContentText(channelTitle) + .setContentIntent(pIntent) + .setLargeIcon(icon) + .setSmallIcon(getNotificationIcon(context)) + .setGroup(account.getAcct() + "@" + account.getInstance()) + .setGroupSummary(true) + .build(); + notificationManager.notify(0, summaryNotification); }