From 52f0452bbc9e7088a6eee0aea244b3415f9a650e Mon Sep 17 00:00:00 2001 From: Paul Stewart Date: Fri, 28 Oct 2016 13:01:28 -0700 Subject: WifiNotificationController: Explicitly ignore cases Explicitly ignore all known cases for NetworkInfo.DetailedState so build tools can alert us when new cases are added that we have not yet considered here. Bug: 32490639 Change-Id: I8091a93073ea8f85878471ebb5c01792f0f1e4f0 Test: Compile only -- trivial change --- .../com/android/server/wifi/WifiNotificationController.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/service/java/com/android/server/wifi/WifiNotificationController.java b/service/java/com/android/server/wifi/WifiNotificationController.java index 5e83bdb71..8d8847105 100644 --- a/service/java/com/android/server/wifi/WifiNotificationController.java +++ b/service/java/com/android/server/wifi/WifiNotificationController.java @@ -137,6 +137,17 @@ final class WifiNotificationController { case CAPTIVE_PORTAL_CHECK: resetNotification(); break; + + case IDLE: + case SCANNING: + case CONNECTING: + case AUTHENTICATING: + case OBTAINING_IPADDR: + case SUSPENDED: + case FAILED: + case BLOCKED: + case VERIFYING_POOR_LINK: + break; } } } else if (intent.getAction().equals( -- cgit v1.2.3