Merge "Log when an app targeting O does not specify a channel" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-19 21:10:09 +00:00
committed by Android (Google) Code Review

View File

@@ -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");
}