Log when an app targeting O does not specify a channel

Bug: 37485692
Test: runtest systemui-notification
Change-Id: Iffe6a016dfd399c39e0acb281f454271ef13f7fd
This commit is contained in:
Geoffrey Pitsch
2017-04-19 15:21:56 -04:00
parent a017e573b5
commit f6491e1d43

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