am ac9c73ae: Merge "Fix notification of disconnected networks." into honeycomb-LTE
* commit 'ac9c73ae619aee63f49cf1f845ef5588bd46dce8': Fix notification of disconnected networks.
This commit is contained in:
@@ -1569,13 +1569,16 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
|
|||||||
if(DBG) log("EVENT_DISCONNECT_DONE connId=" + connId);
|
if(DBG) log("EVENT_DISCONNECT_DONE connId=" + connId);
|
||||||
if (ar.userObj instanceof ApnContext) {
|
if (ar.userObj instanceof ApnContext) {
|
||||||
apnContext = (ApnContext) ar.userObj;
|
apnContext = (ApnContext) ar.userObj;
|
||||||
|
} else {
|
||||||
|
loge("Invalid ar in onDisconnectDone");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mPhone.notifyDataConnection(apnContext.getReason(), apnContext.getApnType());
|
|
||||||
|
|
||||||
apnContext.setState(State.IDLE);
|
apnContext.setState(State.IDLE);
|
||||||
apnContext.setApnSetting(null);
|
apnContext.setApnSetting(null);
|
||||||
|
|
||||||
|
mPhone.notifyDataConnection(apnContext.getReason(), apnContext.getApnType());
|
||||||
|
|
||||||
// if all data connection are gone, check whether Airplane mode request was
|
// if all data connection are gone, check whether Airplane mode request was
|
||||||
// pending.
|
// pending.
|
||||||
if (!isConnected()) {
|
if (!isConnected()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user