Fix crash while dialing "*228;1"

This commit is contained in:
Libin Tang
2009-07-27 16:36:12 -05:00
committed by Wink Saville
parent 8845ea0592
commit d903014c1f

View File

@@ -1338,25 +1338,26 @@ public class CDMAPhone extends PhoneBase {
return isOtaSpNum;
}
/**
* isOTASPNumber: checks a given number against the IS-683A OTASP dial string and carrier
* OTASP dial string.
*
* @param dialStr the number to look up.
* @return true if the number is in IS-683A OTASP dial string or carrier OTASP dial string
*/
/**
* isOTASPNumber: checks a given number against the IS-683A OTASP dial string and carrier
* OTASP dial string.
*
* @param dialStr the number to look up.
* @return true if the number is in IS-683A OTASP dial string or carrier OTASP dial string
*/
@Override
public boolean isOtaSpNumber(String dialStr){
boolean isOtaSpNum = false;
if (dialStr != null) {
isOtaSpNum = isIs683OtaSpDialStr(dialStr);
if(isOtaSpNum == false){
isOtaSpNum = isCarrierOtaSpNum(dialStr);
}
}
if (DBG) Log.d(LOG_TAG, "isOtaSpNumber " + isOtaSpNum);
return isOtaSpNum;
}
public boolean isOtaSpNumber(String dialStr){
boolean isOtaSpNum = false;
String dialableStr = PhoneNumberUtils.extractNetworkPortion(dialStr);
if (dialableStr != null) {
isOtaSpNum = isIs683OtaSpDialStr(dialableStr);
if (isOtaSpNum == false) {
isOtaSpNum = isCarrierOtaSpNum(dialableStr);
}
}
if (DBG) Log.d(LOG_TAG, "isOtaSpNumber " + isOtaSpNum);
return isOtaSpNum;
}
@Override
public int getCdmaEriIconIndex() {