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

Commit 18eb155d authored by Malcolm Chen's avatar Malcolm Chen
Browse files

Changing setPreferredData so that it takes subId.

Bug: 92796390
Test: build
Change-Id: I32f2cafc0228857cbe459faa8b4dda77a46cd687
Merged-In: I32f2cafc0228857cbe459faa8b4dda77a46cd687
parent 6f2937f1
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);