summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Geoffrey Pitsch <gpitsch@google.com> 2017-04-19 21:47:52 +0000
committer android-build-merger <android-build-merger@google.com> 2017-04-19 21:47:52 +0000
commite5dbc384fdabedf36fc8aca3523b520a73cdc1a2 (patch)
treefab468868df653b266f1c7566b155d3f3869a38f
parent09071f9bdf785629aace99bb4c39ed996faecf37 (diff)
parentaf12b17674ba2122da6512358b52800829734591 (diff)
Merge "Log when an app targeting O does not specify a channel" into oc-dev
am: af12b17674 Change-Id: Ia7cc8a586441cf6c9bc2a7ccbbe70bc5f89327fe
-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 e13aeaf91ea3..c2892049e64d 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");
}