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

Commit 3e2a3476 authored by Jack Yu's avatar Jack Yu
Browse files

Cleaned up the usage of SubscriptionManger.getSubId

Cleaned up the old APIs and replaced with the new APIs.

Bug: 270094276
Test: Boot up + Basic phone funcationality tests
Change-Id: Ie68cc64241516852044bd7ea7afcdbff5b4a315f
parent 816e6132
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2631,7 +2631,6 @@ public class SubscriptionController extends ISub.Stub {
     * @deprecated
     */
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
    @Override
    @Deprecated
    public int[] getSubIds(int slotIndex) {
        if (VDBG) printStackTrace("[getSubId]+ slotIndex=" + slotIndex);
+0 −5
Original line number Diff line number Diff line
@@ -2632,11 +2632,6 @@ public class SubscriptionManagerService extends ISub.Stub {
                SubscriptionManager.INVALID_SUBSCRIPTION_ID);
    }

    @Override
    public int[] getSubIds(int slotIndex) {
        return new int[]{getSubId(slotIndex)};
    }

    /**
     * Update default sub id.
     */