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

Commit 42e9ab93 authored by Jack Yu's avatar Jack Yu
Browse files

Fixed multiple remote SIM can't be inserted issue

Fixed an issue where the second inserted remote SIM
would be rejected.

Fixes: 442647679
Test: Manual
Test: atest SubscriptionManagerService
Flag: EXEMPT bug fix
Change-Id: Ibebc50c6e601d15325b122f147899b6e070a20a6
parent ae698afc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2592,7 +2592,9 @@ public class SubscriptionManager {
     * Get the subscription id for specified logical SIM slot index.
     *
     * @param slotIndex The logical SIM slot index.
     * @return The subscription id. {@link #INVALID_SUBSCRIPTION_ID} if SIM is absent.
     * @return The subscription id. {@link SubscriptionManager#INVALID_SUBSCRIPTION_ID} if SIM is
     * absent. If slotIndex is {@link SubscriptionManager#SLOT_INDEX_FOR_REMOTE_SIM_SUB}, the last
     * inserted remote SIM subscription id will be returned.
     */
    public static int getSubscriptionId(int slotIndex) {
        if (!isValidSlotIndex(slotIndex)) {