Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b77bbd2 authored by Wink Saville's avatar Wink Saville Committed by Android (Google) Code Review
Browse files

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

parents 8b805ddc 9b9e6778
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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();