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

Commit 79d26c55 authored by Jordan Liu's avatar Jordan Liu
Browse files

Do not use SubscriptionManager.getSubId

It's deprecated, and mPhone.getSubId() works the same way.

Test: manual and ServiceStateTrackerTest.java
Change-Id: Ie0384cd4f0a3be272c91ef4d265115e34dd96268
parent 71b259e1
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -2244,11 +2244,7 @@ public class ServiceStateTracker extends Handler {
                showSpn = false;
            }

            int subId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
            int[] subIds = SubscriptionManager.getSubId(mPhone.getPhoneId());
            if (subIds != null && subIds.length > 0) {
                subId = subIds[0];
            }
            int subId = mPhone.getSubId();

            // Update SPN_STRINGS_UPDATED_ACTION IFF any value changes
            if (mSubId != subId ||
@@ -2290,11 +2286,7 @@ public class ServiceStateTracker extends Handler {

            showPlmn = plmn != null;

            int subId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
            int[] subIds = SubscriptionManager.getSubId(mPhone.getPhoneId());
            if (subIds != null && subIds.length > 0) {
                subId = subIds[0];
            }
            int subId = mPhone.getSubId();

            if (!TextUtils.isEmpty(plmn) && !TextUtils.isEmpty(wfcVoiceSpnFormat)) {
                // In Wi-Fi Calling mode show SPN+WiFi