am f0fa8416: Merge "Make hasIccCard return true if RUIM card is present."
Merge commit 'f0fa8416e13b2885b858b6974b101c70833e4729' into gingerbread-plus-aosp * commit 'f0fa8416e13b2885b858b6974b101c70833e4729': Make hasIccCard return true if RUIM card is present.
This commit is contained in:
committed by
Android Git Automerger
commit
969907f3f5
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user