summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-01-17 21:53:45 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-01-17 21:53:45 +0000
commita8f09a821cf90e41671921a1a3de11bf552c9865 (patch)
tree9b6c1fa4cd87c941d4ba129ac8d6979f3bf2f0d9
parente55a19013cf65a1b5415bcdc1aef0880a4716b3a (diff)
parente1bda6a54ea9bfbec2bf52d865b8d5b1721a70b4 (diff)
Merge "Revert "WifiService: Remove usage of NotificationChannel.setBlockableSystem""
-rw-r--r--service/java/com/android/server/wifi/WifiService.java2
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 f27fca075..e29cb59aa 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(
com.android.wifi.resources.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(
com.android.wifi.resources.R.string.notification_channel_network_available),
NotificationManager.IMPORTANCE_LOW);
+ networkAvailable.setBlockableSystem(true);
channelsList.add(networkAvailable);
nm.createNotificationChannels(channelsList);