diff options
| author | 2017-03-23 22:23:01 +0000 | |
|---|---|---|
| committer | 2017-03-23 22:23:06 +0000 | |
| commit | b3ba20fe52b0b78e8fb3dffa693e80e4b69930cc (patch) | |
| tree | 8cc1f476be4c99dcaf57a129b0c22717cd3e0e88 | |
| parent | f5604e101b309a17bf13c7ba25199df10cbdb98c (diff) | |
| parent | 96cac7f7225ffb011d9a22b32d97b9a370357d6c (diff) | |
Merge "Disable no-channel exception, notifications will silently fail"
| -rw-r--r-- | services/core/java/com/android/server/notification/NotificationManagerService.java | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 3d18160ca7b7..eb22d5da4395 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -3116,8 +3116,19 @@ public class NotificationManagerService extends SystemService { + " - notification=" + notification); return; } - throw new IllegalArgumentException("No Channel found for channelId=" + channelId - + ", notification=" + notification); + final String noChannelStr = "No Channel found for " + + "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( pkg, opPkg, id, tag, notificationUid, callingPid, notification, |