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

Commit da8fcec2 authored by Yuri Lin's avatar Yuri Lin Committed by Android (Google) Code Review
Browse files

Merge "Broaden the definition of "invalid message sent" to include messaging style" into main

parents 62a5603d 960c8752
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -4068,6 +4068,15 @@ public class NotificationManagerService extends SystemService {
                    handleSavePolicyFile();
                }
            }
        } else if (nmSummarizationUi() && r.getNotification().isStyle(
                Notification.MessagingStyle.class)) {
            // If the notification is determined not to be a conversation, but still uses messaging
            // style, consider it to be an "invalid" message, so that the sending app still gets
            // identified as one that sends some form of messages.
            if (mPreferencesHelper.setInvalidMessageSent(
                    r.getSbn().getPackageName(), r.getUid())) {
                handleSavePolicyFile();
            }
        }
    }