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

Commit 20a8046c authored by Suresh Koleti's avatar Suresh Koleti Committed by Linux Build Service Account
Browse files

Cleanup data connections in CDMA during DDS switch.

There is no support for detach procedure in CDMA need to deactivate
data call from telephony during DDS switch

Change-Id: I09e45899f24408c6e4a75b4e89d895c83760737e
CRs-Fixed: 720197
parent 1b59c775
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -515,6 +515,10 @@ public class DctController extends Handler {
        Phone phone = mPhones[prefPhoneId].getActivePhone();
        DcTrackerBase dcTracker =((PhoneBase)phone).mDcTracker;
        dcTracker.setDataAllowed(false, null);
        if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
            //cleanup data from apss as there is no detach procedure for CDMA
            dcTracker.cleanUpAllConnections("DDS switch");
        }
        SwitchInfo s = new SwitchInfo(new Integer(phoneId), true);
        mPhones[prefPhoneId].registerForAllDataDisconnected(
                this, EVENT_ALL_DATA_DISCONNECTED, s);