summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Geoffrey Pitsch <gpitsch@google.com> 2017-04-19 15:21:56 -0400
committer Geoffrey Pitsch <gpitsch@google.com> 2017-04-19 15:21:56 -0400
commitf6491e1d43e8cd6c2b3bce6de517a1eaf82f08bb (patch)
tree7722b254d571a48be6711a692f44b11072a731b1
parenta017e573b5a900f6d7e0f1c6e4ed01fd569cc89f (diff)
Log when an app targeting O does not specify a channel
Bug: 37485692 Test: runtest systemui-notification Change-Id: Iffe6a016dfd399c39e0acb281f454271ef13f7fd
-rw-r--r--services/core/java/com/android/server/notification/NotificationManagerService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java
index 8a6a940e6669..9d33e01d20e2 100644
--- a/services/core/java/com/android/server/notification/NotificationManagerService.java
+++ b/services/core/java/com/android/server/notification/NotificationManagerService.java
@@ -3203,6 +3203,8 @@ public class NotificationManagerService extends SystemService {
return;
} else if (channelId == null && shouldWarnUseChannels(pkg, notificationUid)) {
// STOPSHIP TODO: remove once default channel is removed for all apps that target O.
+ Log.e(TAG, "Developer Warning for package " + pkg
+ + ", no channel specified for posted notification: " + notification);
doDebugOnlyToast("Developer warning for package \"" + pkg + "\"\n" +
"Posted notification should specify a channel");
}