diff options
| author | 2019-02-13 20:29:03 -0800 | |
|---|---|---|
| committer | 2019-02-13 20:29:03 -0800 | |
| commit | deac15fa83dfc665931036697f0a404a16ed1f2e (patch) | |
| tree | 524b455221d9a36247c158e5ec17c34135715bd1 | |
| parent | 7042e290cf0c4d5518d2ed667d25e56bba95e848 (diff) | |
| parent | 1037bbb82a8f248d92a847fb910a73fd35264561 (diff) | |
Merge "Clear all lingering notifications when network is disconnected"
am: 1037bbb82a
Change-Id: I2d9f84840cdc73ed3b30278d7a9dbeefff233fa3
| -rw-r--r-- | services/core/java/com/android/server/ConnectivityService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index af2bbfbb1dc3..9b4cd230427f 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java @@ -2832,6 +2832,8 @@ public class ConnectivityService extends IConnectivityManager.Stub if (DBG) { log(nai.name() + " got DISCONNECTED, was satisfying " + nai.numNetworkRequests()); } + // Clear all notifications of this network. + mNotifier.clearNotification(nai.network.netId); // A network agent has disconnected. // TODO - if we move the logic to the network agent (have them disconnect // because they lost all their requests or because their score isn't good) |