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

Commit 04eb5f13 authored by Chaitanya Saggurthi's avatar Chaitanya Saggurthi
Browse files

7+5 mode Telephony implementation

Pass user preferred subscription id with oem hook request
for on demand Dds switch requests.

Change-Id: I883bce818652253feae14a3be52eb4d510731277
parent 245f3e1e
Loading
Loading
Loading
Loading
+9 −1
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;
@@ -383,8 +384,14 @@ public class DctController extends Handler {
                Message allowedDataDone = Message.obtain(this,
                        EVENT_SET_DATA_ALLOW_DONE, s);
                Phone phone = mPhones[phoneId].getActivePhone();

                if (!isOnDemandDdsSwitchInProgress) {
                    informDefaultDdsToPropServ(phoneId);
                } else {
                    int defPhoneId = getDataConnectionFromSetting();
                    informDefaultDdsToPropServ(defPhoneId);
                    isOnDemandDdsSwitchInProgress = false;
               }

                DcTrackerBase dcTracker =((PhoneBase)phone).mDcTracker;
                dcTracker.setDataAllowed(true, allowedDataDone);

@@ -501,6 +508,7 @@ public class DctController extends Handler {
                   }
                } else {
                    Rlog.d(LOG_TAG, "PS DETACH success = " + s);
                    isOnDemandDdsSwitchInProgress = true;
                }
                break;
            }