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

Commit b3ba20fe authored by Geoffrey Pitsch's avatar Geoffrey Pitsch Committed by Android (Google) Code Review
Browse files

Merge "Disable no-channel exception, notifications will silently fail"

parents f5604e10 96cac7f7
Loading
Loading
Loading
Loading
+13 −2
Original line number Original line Diff line number Diff line
@@ -3116,8 +3116,19 @@ public class NotificationManagerService extends SystemService {
                        + " - notification=" + notification);
                        + " - notification=" + notification);
                return;
                return;
            }
            }
            throw new IllegalArgumentException("No Channel found for channelId=" + channelId
            final String noChannelStr = "No Channel found for "
                    + ", notification=" + notification);
                    + "pkg=" + pkg
                    + ", channelId=" + channelId
                    + ", opPkg=" + opPkg
                    + ", callingUid=" + callingUid
                    + ", userId=" + userId
                    + ", incomingUserId=" + incomingUserId
                    + ", notificationUid=" + notificationUid
                    + ", notification=" + notification;
            // STOPSHIP TODO: should throw instead of logging.
            // throw new IllegalArgumentException(noChannelStr);
            Log.e(TAG, noChannelStr);
            return;
        }
        }
        final StatusBarNotification n = new StatusBarNotification(
        final StatusBarNotification n = new StatusBarNotification(
                pkg, opPkg, id, tag, notificationUid, callingPid, notification,
                pkg, opPkg, id, tag, notificationUid, callingPid, notification,