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

Commit 4fc9c994 authored by Holly Jiuyu Sun's avatar Holly Jiuyu Sun Committed by android-build-merger
Browse files

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

am: feb047ac

Change-Id: I29c25297b91bb8c31addf4d88d126adaa440db8b
parents c5e86971 feb047ac
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;
    }

    /**