Merge "Have getPhoneType return PHONE_TYPE_NONE for non-voice capable devices." into honeycomb

This commit is contained in:
Wink Saville
2011-02-01 15:24:31 -08:00
committed by Android (Google) Code Review

View File

@ -286,6 +286,9 @@ public class TelephonyManager {
*/
public int getPhoneType() {
try{
if (!isVoiceCapable()) {
return PHONE_TYPE_NONE;
}
ITelephony telephony = getITelephony();
if (telephony != null) {
return telephony.getActivePhoneType();