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

Commit 566cd74f authored by Wink Saville's avatar Wink Saville Committed by Android Git Automerger
Browse files

am 4b77bbd2: Merge "Have getPhoneType return PHONE_TYPE_NONE for non-voice...

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

* commit '4b77bbd2':
  Have getPhoneType return PHONE_TYPE_NONE for non-voice capable devices.
parents 59927ce5 4b77bbd2
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();