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

Commit 732aecd8 authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by Gerrit Code Review
Browse files

Merge "Changing setPreferredData so that it takes subId."

parents ceaff493 18eb155d
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -2293,14 +2293,11 @@ public class SubscriptionController extends ISub.Stub {
    }

    @Override
    public int setPreferredData(int slotId) {
    public int setPreferredData(int subId) {
        enforceModifyPhoneState("setPreferredData");
        final long token = Binder.clearCallingIdentity();

        try {
            // TODO: make this API takes in subId directly.
            int subId = getSubIdUsingPhoneId(slotId);

            if (mPreferredDataSubId != subId) {
                mPreferredDataSubId = subId;
                PhoneSwitcher.getInstance().setPreferredData(subId);