diff options
| author | 2010-07-29 14:56:49 -0700 | |
|---|---|---|
| committer | 2010-07-29 14:56:49 -0700 | |
| commit | 44a1e3a5747c1974d49db19dd091f13a4ab74cc7 (patch) | |
| tree | f0e8285084f1095f81dd1506d93108b278d4e778 | |
| parent | f82447e43e87c288c3bb41cdb0474a3204c2bd0d (diff) | |
| parent | 969907f3f59cf9420c3bd9d672b509196cf82cbe (diff) | |
am 969907f3: am f0fa8416: Merge "Make hasIccCard return true if RUIM card is present."
Merge commit '969907f3f59cf9420c3bd9d672b509196cf82cbe'
* commit '969907f3f59cf9420c3bd9d672b509196cf82cbe':
Make hasIccCard return true if RUIM card is present.
| -rw-r--r-- | telephony/java/com/android/internal/telephony/IccCard.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/telephony/java/com/android/internal/telephony/IccCard.java b/telephony/java/com/android/internal/telephony/IccCard.java index d3a34ecd39d0..90f9e8cad111 100644 --- a/telephony/java/com/android/internal/telephony/IccCard.java +++ b/telephony/java/com/android/internal/telephony/IccCard.java @@ -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(); } } |