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

This commit is contained in:
Holly Jiuyu Sun
2019-01-22 19:03:58 +00:00
committed by Gerrit Code Review

View File

@@ -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;
}
/**