Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcbba67a authored by Ramesh Sudini's avatar Ramesh Sudini Committed by Wink Saville
Browse files

Telephony: Fix merge issue "Set enabled state before notification is sent out."

The original change-id was I6e84920b8d082fd6da838bccb5333051362bc4bc

Change-Id: I758641f8b29346a868e1b6b454ccd3f2341dffb8
parent 41f665a5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1596,13 +1596,12 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
        apnContext.setState(State.IDLE);
        apnContext.setApnSetting(null);

        mPhone.notifyDataConnection(apnContext.getReason(), apnContext.getApnType());

        // Check if APN disabled.
        if (apnContext.getPendingAction() == ApnContext.PENDING_ACTION_APN_DISABLE) {
           apnContext.setEnabled(false);
           apnContext.setPendingAction(ApnContext.PENDING_ACTION_NONE);
        }
        mPhone.notifyDataConnection(apnContext.getReason(), apnContext.getApnType());

        // if all data connection are gone, check whether Airplane mode request was
        // pending.