From 02e5966facb7ec76b5c68c5671f63af173f468f9 Mon Sep 17 00:00:00 2001 From: Hugo Benichi Date: Thu, 22 Dec 2016 09:49:11 +0900 Subject: [PATCH] NetworkNotificationManager: remove spammy log Test: build, flashed, booted phone. Bug: 32198726 Change-Id: I3ac2f07c756f48653195f6198aaee4d8b3939fb5 --- .../server/connectivity/NetworkNotificationManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java b/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java index 497a6b7234..4ff665787c 100644 --- a/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java +++ b/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java @@ -221,11 +221,10 @@ public class NetworkNotificationManager { } public void clearNotification(int id) { - final String tag = tagFor(id); if (mNotificationTypeMap.indexOfKey(id) < 0) { - Slog.e(TAG, "cannot clear unknown notification with tag=" + tag); return; } + final String tag = tagFor(id); final int eventId = mNotificationTypeMap.get(id); if (DBG) { Slog.d(TAG, String.format("clearing notification tag=%s event=%s", tag,