Merge "Don't leak captive portal broadcast receivers."
This commit is contained in:
@@ -542,10 +542,6 @@ public class NetworkMonitor extends StateMachine {
|
|||||||
return HANDLED;
|
return HANDLED;
|
||||||
case CMD_NETWORK_DISCONNECTED:
|
case CMD_NETWORK_DISCONNECTED:
|
||||||
logNetworkEvent(NetworkEvent.NETWORK_DISCONNECTED);
|
logNetworkEvent(NetworkEvent.NETWORK_DISCONNECTED);
|
||||||
if (mLaunchCaptivePortalAppBroadcastReceiver != null) {
|
|
||||||
mContext.unregisterReceiver(mLaunchCaptivePortalAppBroadcastReceiver);
|
|
||||||
mLaunchCaptivePortalAppBroadcastReceiver = null;
|
|
||||||
}
|
|
||||||
quit();
|
quit();
|
||||||
return HANDLED;
|
return HANDLED;
|
||||||
case CMD_FORCE_REEVALUATION:
|
case CMD_FORCE_REEVALUATION:
|
||||||
@@ -779,7 +775,10 @@ public class NetworkMonitor extends StateMachine {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void exit() {
|
public void exit() {
|
||||||
|
if (mLaunchCaptivePortalAppBroadcastReceiver != null) {
|
||||||
|
mContext.unregisterReceiver(mLaunchCaptivePortalAppBroadcastReceiver);
|
||||||
mLaunchCaptivePortalAppBroadcastReceiver = null;
|
mLaunchCaptivePortalAppBroadcastReceiver = null;
|
||||||
|
}
|
||||||
hideProvisioningNotification();
|
hideProvisioningNotification();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user