private void onApnChanged() {
        DctConstants.State overallState = getOverallState();
        boolean isDisconnected = (overallState == DctConstants.State.IDLE ||
                overallState == DctConstants.State.FAILED);
        if (mPhone instanceof GSMPhone) {
            // The "current" may no longer be valid.  MMS depends on this to send properly. TBD
            ((GSMPhone)mPhone).updateCurrentCarrierInProvider();
        }
        // TODO: It'd be nice to only do this if the changed entrie(s)
        // match the current operator.
        if (DBG) log("onApnChanged: createAllApnList and cleanUpAllConnections");
        createAllApnList();
        setInitialAttachApn();
        cleanUpAllConnections(!isDisconnected, Phone.REASON_APN_CHANGED);
        if (isDisconnected) {
            setupDataOnConnectableApns(Phone.REASON_APN_CHANGED);
        }
    }
private void onApnChanged() {
        DctConstants.State overallState = getOverallState();
        boolean isDisconnected = (overallState == DctConstants.State.IDLE ||
                overallState == DctConstants.State.FAILED);
        if (mPhone instanceof GSMPhone) {
           
            ((GSMPhone)mPhone).updateCurrentCarrierInProvider();
        }
       
       
        if (DBG) log("onApnChanged: createAllApnList and cleanUpAllConnections");
        createAllApnList();
        setInitialAttachApn();
        cleanUpAllConnections(!isDisconnected, Phone.REASON_APN_CHANGED);
        if (isDisconnected) {
            setupDataOnConnectableApns(Phone.REASON_APN_CHANGED);
        }
    }
private void onapnchanged() { dctconstants.state overallstate = getoverallstate(); boolean isdisconnected = (overallstate == dctconstants.state.idle || overallstate == dctconstants.state.failed); if (mphone instanceof gsmphone) { ((gsmphone)mphone).updatecurrentcarrierinprovider(); } if (dbg) log("onapnchanged: createallapnlist and cleanupallconnections"); createallapnlist(); setinitialattachapn(); cleanupallconnections(!isdisconnected, phone.reason_apn_changed); if (isdisconnected) { setupdataonconnectableapns(phone.reason_apn_changed); } }