Fix notification of disconnected networks.
Reorder - set state and then report the state, else we always report disconnecting which is interpreted as still connected. Change-Id: I95f5fe9ccee0d7ee9a03f78ae5b614af2ba0860b
This commit is contained in:
@@ -1572,13 +1572,16 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
|
||||
if(DBG) log("EVENT_DISCONNECT_DONE connId=" + connId);
|
||||
if (ar.userObj instanceof ApnContext) {
|
||||
apnContext = (ApnContext) ar.userObj;
|
||||
} else {
|
||||
loge("Invalid ar in onDisconnectDone");
|
||||
return;
|
||||
}
|
||||
|
||||
mPhone.notifyDataConnection(apnContext.getReason(), apnContext.getApnType());
|
||||
|
||||
apnContext.setState(State.IDLE);
|
||||
apnContext.setApnSetting(null);
|
||||
|
||||
mPhone.notifyDataConnection(apnContext.getReason(), apnContext.getApnType());
|
||||
|
||||
// if all data connection are gone, check whether Airplane mode request was
|
||||
// pending.
|
||||
if (!isConnected()) {
|
||||
|
||||
Reference in New Issue
Block a user