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

Commit b9b94581 authored by Susheel nyamala's avatar Susheel nyamala Committed by Chirayu Desai
Browse files

Telephony: On demand DDS switch uses preferred sub

Pass user preferred subscription id on oem hook request
for on demand DDS switch. RIL uses this information
to send DUAL_STANDBY_PREF_REQUEST down to the modem, based on
which the modem stack is selected.

CRs-Fixed: 806933

Change-Id: I883bce818652253feae14a3be52eb4d510731277
parent b7609736
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -83,6 +83,7 @@ public class DctController extends Handler {
    private SubscriptionController mSubController = SubscriptionController.getInstance();

    private static DctController sDctController;
    private static boolean isOnDemandDdsSwitchInProgress = false;

    private int mPhoneNum;
    private PhoneProxy[] mPhones;
@@ -375,6 +376,14 @@ public class DctController extends Handler {
                    Phone phone = mPhones[phoneId].getActivePhone();

                    informDefaultDdsToPropServ(phoneId);

                    if (!isOnDemandDdsSwitchInProgress) {
                        informDefaultDdsToPropServ(phoneId);
                    } else {
                        int defPhoneId = getDataConnectionFromSetting();
                        informDefaultDdsToPropServ(defPhoneId);
                        isOnDemandDdsSwitchInProgress = false;
                    }
                    DcTrackerBase dcTracker =((PhoneBase)phone).mDcTracker;
                    dcTracker.setDataAllowed(true, allowedDataDone);
                }
@@ -966,6 +975,7 @@ public class DctController extends Handler {
                    }
                    mPhones[prefPhoneId].registerForAllDataDisconnected(
                            sDctController, EVENT_ALL_DATA_DISCONNECTED, s);
                    isOnDemandDdsSwitchInProgress = true;
                    break;
                }
            }