summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorEcco Park <eccopark@google.com>2018-11-12 22:19:00 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-11-12 22:19:00 +0000
commitc6571a3424320c0ab3bcfbb0ab92439ed5adba64 (patch)
tree9d44fc59e67666fe0f4021a51c5dedc647f15971 /service
parent5ca503e12af88171c4aa47c0192c777fb5b27cfe (diff)
parent1c1418a33d4303f54ecfcf8335b908072630c31c (diff)
Merge "passpoint-r2: unregister ConnectivityCallbacks when it disconnects OSU AP"
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/hotspot2/OsuNetworkConnection.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/hotspot2/OsuNetworkConnection.java b/service/java/com/android/server/wifi/hotspot2/OsuNetworkConnection.java
index 367a80dc6..0de441434 100644
--- a/service/java/com/android/server/wifi/hotspot2/OsuNetworkConnection.java
+++ b/service/java/com/android/server/wifi/hotspot2/OsuNetworkConnection.java
@@ -136,6 +136,7 @@ public class OsuNetworkConnection {
}
return;
}
+ mConnectivityManager.unregisterNetworkCallback(mConnectivityCallbacks);
mWifiManager.removeNetwork(mNetworkId);
mNetworkId = -1;
mNetwork = null;