Merge "Check whether cardId is valid in EuiccManager#isEnabled."
am: feb047acb3
Change-Id: I29c25297b91bb8c31addf4d88d126adaa440db8b
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user