Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3175370 authored by Mady Mellor's avatar Mady Mellor
Browse files

Require category message when auto-bubbling messages

Test: manual
Bug: 111236845
Change-Id: I4f2ee780aff5fadcc494ca8abf7966ee34f24803
parent 6ad12e57
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -344,10 +344,9 @@ public class BubbleController {
        }

        Class<? extends Notification.Style> style = n.getNotification().getNotificationStyle();
        boolean isMessageType = Notification.MessagingStyle.class.equals(style)
                || Notification.CATEGORY_MESSAGE.equals(n.getNotification().category)
                || hasRemoteInput;
        return (isMessageType && autoBubbleMessages)
        boolean isMessageType = Notification.CATEGORY_MESSAGE.equals(n.getNotification().category);
        boolean isMessageStyle = Notification.MessagingStyle.class.equals(style);
        return (((isMessageType && hasRemoteInput) || isMessageStyle) && autoBubbleMessages)
                || (n.isOngoing() && autoBubbleOngoing)
                || autoBubbleAll;
    }