Skip to content

Commit a0e0d58

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Removing a notification that isn't there isn't a big deal." into jb-dev
2 parents 39f8889 + fe0806a commit a0e0d58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/java/com/android/server/StatusBarManagerService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ public void removeNotification(IBinder key) {
489489
synchronized (mNotifications) {
490490
final StatusBarNotification n = mNotifications.remove(key);
491491
if (n == null) {
492-
throw new IllegalArgumentException("removeNotification key not found: " + key);
492+
Slog.e(TAG, "removeNotification key not found: " + key);
493+
return;
493494
}
494495
if (mBar != null) {
495496
try {

0 commit comments

Comments
 (0)