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

Commit feb047ac authored by Holly Jiuyu Sun's avatar Holly Jiuyu Sun Committed by Gerrit Code Review
Browse files

Merge "Check whether cardId is valid in EuiccManager#isEnabled."

parents 3788e914 ef5c4a53
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -291,7 +291,7 @@ public class EuiccManager {
    public boolean isEnabled() {
        // In the future, this may reach out to IEuiccController (if non-null) to check any dynamic
        // restrictions.
        return getIEuiccController() != null;
        return getIEuiccController() != null && mCardId != TelephonyManager.INVALID_CARD_ID;
    }

    /**