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

Commit 184f9fa4 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk Committed by Android (Google) Code Review
Browse files

Merge "Don't discriminate getPhoneType against data-only devices" into main

parents d489ac79 0120f3ed
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2741,7 +2741,7 @@ public class TelephonyManager {
    /**
     * Returns a constant indicating the device phone type.  This
     * indicates the type of radio used to transmit voice calls.
     * indicates the type of radio used to transmit voice/data calls.
     *
     * @see #PHONE_TYPE_NONE
     * @see #PHONE_TYPE_GSM
@@ -2753,7 +2753,7 @@ public class TelephonyManager {
     */
    @RequiresFeature(PackageManager.FEATURE_TELEPHONY)
    public int getPhoneType() {
        if (!isVoiceCapable()) {
        if (!isVoiceCapable() && !isDataCapable()) {
            return PHONE_TYPE_NONE;
        }
        return getCurrentPhoneType();