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

Commit 5e828e9b authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Treat slot idx used for remote sim as valid where needed."

am: bf0c8775

Change-Id: I465962b8e9acec2eb19f887e8fefabce8f3bf9b5
parents 00093c24 bf0c8775
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1772,9 +1772,10 @@ public class SubscriptionController extends ISub.Stub {
            if (VDBG) logd("[getSubId] map default slotIndex=" + slotIndex);
        }

        // Check that we have a valid slotIndex
        // TODO b/123300875 This check should probably be removed once tests are fixed
        if (!SubscriptionManager.isValidSlotIndex(slotIndex)) {
        // Check that we have a valid slotIndex or the slotIndex is for a remote SIM (remote SIM
        // uses special slot index that may be invalid otherwise)
        if (!SubscriptionManager.isValidSlotIndex(slotIndex)
                && slotIndex != SubscriptionManager.SLOT_INDEX_FOR_REMOTE_SIM_SUB) {
            if (DBG) logd("[getSubId]- invalid slotIndex=" + slotIndex);
            return null;
        }