am dcbba67a: Telephony: Fix merge issue "Set enabled state before notification is sent out."
* commit 'dcbba67afc08d0ac9af53e95d5997af11f869853': Telephony: Fix merge issue "Set enabled state before notification is sent out."
This commit is contained in:
@@ -1596,13 +1596,12 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
|
|||||||
apnContext.setState(State.IDLE);
|
apnContext.setState(State.IDLE);
|
||||||
apnContext.setApnSetting(null);
|
apnContext.setApnSetting(null);
|
||||||
|
|
||||||
mPhone.notifyDataConnection(apnContext.getReason(), apnContext.getApnType());
|
|
||||||
|
|
||||||
// Check if APN disabled.
|
// Check if APN disabled.
|
||||||
if (apnContext.getPendingAction() == ApnContext.PENDING_ACTION_APN_DISABLE) {
|
if (apnContext.getPendingAction() == ApnContext.PENDING_ACTION_APN_DISABLE) {
|
||||||
apnContext.setEnabled(false);
|
apnContext.setEnabled(false);
|
||||||
apnContext.setPendingAction(ApnContext.PENDING_ACTION_NONE);
|
apnContext.setPendingAction(ApnContext.PENDING_ACTION_NONE);
|
||||||
}
|
}
|
||||||
|
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user