Merge "Make hasIccCard return true if RUIM card is present."

This commit is contained in:
Jean-Baptiste Queru
2010-07-29 14:37:48 -07:00
committed by Android Code Review

View File

@@ -672,12 +672,11 @@ public abstract class IccCard {
* @return true if a ICC card is present
*/
public boolean hasIccCard() {
boolean isIccPresent;
if (mPhone.getPhoneName().equals("GSM")) {
return mIccCardStatus.getCardState().isCardPresent();
} else {
// TODO: Make work with a CDMA device with a RUIM card.
if (mIccCardStatus == null) {
return false;
} else {
// Returns ICC card status for both GSM and CDMA mode
return mIccCardStatus.getCardState().isCardPresent();
}
}