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

This commit is contained in:
Jiuyu Sun
2019-01-18 21:43:09 +00:00
committed by Android (Google) Code Review

View File

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