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

am: feb047acb3

Change-Id: I29c25297b91bb8c31addf4d88d126adaa440db8b
This commit is contained in:
Holly Jiuyu Sun
2019-01-22 11:57:56 -08:00
committed by android-build-merger

View File

@@ -291,7 +291,7 @@ public class EuiccManager {
public boolean isEnabled() { public boolean isEnabled() {
// In the future, this may reach out to IEuiccController (if non-null) to check any dynamic // In the future, this may reach out to IEuiccController (if non-null) to check any dynamic
// restrictions. // restrictions.
return getIEuiccController() != null; return getIEuiccController() != null && mCardId != TelephonyManager.INVALID_CARD_ID;
} }
/** /**