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

Commit 9b9e6778 authored by Wink Saville's avatar Wink Saville
Browse files

Have getPhoneType return PHONE_TYPE_NONE for non-voice capable devices.

bug: 3198435
Change-Id: I1a19863c106a9394dbc941f396400e31dca95b92
parent 90a9ab56
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();