Loading telephony/java/android/telephony/TelephonyManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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(); Loading Loading
telephony/java/android/telephony/TelephonyManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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(); Loading