From e8e9dbcc23b01c89b07a03a1912d2740ced7f9ee Mon Sep 17 00:00:00 2001 From: Rhiannon Malia Date: Mon, 5 Jun 2017 15:02:55 -0700 Subject: [PATCH] Update captive portal notif for Android TV Test: Connect to captive portal, notification appears in side panel BUG:38453402 Change-Id: I39baf90897f2f3d67b8b03c31dd74fa1d39d39de --- .../server/connectivity/NetworkNotificationManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java b/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java index 4315aaaa44..703e50a088 100644 --- a/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java +++ b/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java @@ -210,6 +210,10 @@ public class NetworkNotificationManager { builder.setContentText(details); } + if (notifyType == NotificationType.SIGN_IN) { + builder.extend(new Notification.TvExtender().setChannelId(channelId)); + } + Notification notification = builder.build(); mNotificationTypeMap.put(id, eventId);