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

Commit 1a24a9c1 authored by Wink Saville's avatar Wink Saville Committed by Android Git Automerger
Browse files

am 566cd74f: am 4b77bbd2: Merge "Have getPhoneType return PHONE_TYPE_NONE for...

am 566cd74f: am 4b77bbd2: Merge "Have getPhoneType return PHONE_TYPE_NONE for non-voice capable devices." into honeycomb

* commit '566cd74f':
  Have getPhoneType return PHONE_TYPE_NONE for non-voice capable devices.
parents 61b6822d 566cd74f
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();