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

Commit f7efd46f authored by Lyn Han's avatar Lyn Han
Browse files

Fix NotificationMenuRow.createMenuViews NPE

Fixes: 392754191
Change-Id: If906d107c6af569313800f63519a616de146ee2c
Test: no NPE when channel is null
Flag: android.app.notification_classification_ui
parent 83513c8a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -264,6 +264,7 @@ public class NotificationMenuRow implements NotificationMenuRowPlugin, View.OnCl
        NotificationEntry entry = mParent.getEntry();
        int personNotifType = mPeopleNotificationIdentifier.getPeopleNotificationType(entry);
        if (android.app.Flags.notificationClassificationUi()
                && entry.getChannel() != null
                && SYSTEM_RESERVED_IDS.contains(entry.getChannel().getId())) {
            // Bundled notification; create bundle-specific guts.
            mInfoItem = createBundleItem(mContext);