summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Lucas Lin <lucaslin@google.com> 2019-02-14 01:40:47 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2019-02-14 01:40:47 +0000
commit1037bbb82a8f248d92a847fb910a73fd35264561 (patch)
treed4e6667671c42cdeabf37154f0cfae6ba3b5f98f
parentf7150486bf8e529bed311acda4f21d5f1e1b902d (diff)
parentf80b83b0e8617ebaf1dda4a807ba52ce4b8e3b57 (diff)
Merge "Clear all lingering notifications when network is disconnected"
-rw-r--r--services/core/java/com/android/server/ConnectivityService.java2
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)