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

Commit 0120f3ed authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Don't discriminate getPhoneType against data-only devices

Bug: 364345595
Test: atest android.carrierapi.cts.CarrierApiTest
Flag: EXEMPT bugfix
Change-Id: Iaaf3360bce1ac949746d794e8aa38acd84250cce
parent 2a8162ee
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2757,7 +2757,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
@@ -2769,7 +2769,7 @@ public class TelephonyManager {
     */
    @RequiresFeature(PackageManager.FEATURE_TELEPHONY)
    public int getPhoneType() {
        if (!isVoiceCapable()) {
        if (!isVoiceCapable() && !isDataCapable()) {
            return PHONE_TYPE_NONE;
        }
        return getCurrentPhoneType();