diff options
author | Roshan Pius <rpius@google.com> | 2020-01-17 20:36:08 +0000 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2020-01-17 20:36:08 +0000 |
commit | e1bda6a54ea9bfbec2bf52d865b8d5b1721a70b4 (patch) | |
tree | 604d58392c5ae4216a43f807055be356d069c931 | |
parent | 6bec9adffcfc7bb19d13121dac1451745c49f00d (diff) |
Revert "WifiService: Remove usage of NotificationChannel.setBlockableSystem"
This reverts commit 6bec9adffcfc7bb19d13121dac1451745c49f00d.
Reason for revert: setBlockableSystem() was made a @SystemApi in b/138401571
Bug: 145921908
Change-Id: I94ed171bb08a244a67dd263a2e4bfb6cf23ce1f1
Test: Compiles
-rw-r--r-- | service/java/com/android/server/wifi/WifiService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiService.java b/service/java/com/android/server/wifi/WifiService.java index a6a32bb6e..34f1a76b7 100644 --- a/service/java/com/android/server/wifi/WifiService.java +++ b/service/java/com/android/server/wifi/WifiService.java @@ -94,6 +94,7 @@ public final class WifiService extends SystemService { ctx.getResources().getString( android.R.string.notification_channel_network_alerts), NotificationManager.IMPORTANCE_HIGH); + networkAlertsChannel.setBlockableSystem(true); channelsList.add(networkAlertsChannel); final NotificationChannel networkAvailable = new NotificationChannel( @@ -101,6 +102,7 @@ public final class WifiService extends SystemService { ctx.getResources().getString( android.R.string.notification_channel_network_available), NotificationManager.IMPORTANCE_LOW); + networkAvailable.setBlockableSystem(true); channelsList.add(networkAvailable); nm.createNotificationChannels(channelsList); |