diff options
author | 2025-03-10 19:47:58 -0700 | |
---|---|---|
committer | 2025-03-10 19:47:58 -0700 | |
commit | b4ec67a6cac5385521263480ff13a45b8cf06e00 (patch) | |
tree | d8561954e595d25c657232cad776f5447be47b55 /telephony | |
parent | 012cb8b62e4b5d560a1cd484cfc70db37e7f38ad (diff) | |
parent | a9ec44ed51a99021974c0748a6727b3b2033ac84 (diff) |
Merge "TelephonyManager: use isDeviceVoiceCapable" into main
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 14d567d141cb..2983e4442a78 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -691,7 +691,7 @@ public class TelephonyManager { case UNKNOWN: modemCount = 1; // check for voice and data support, 0 if not supported - if (!isVoiceCapable() && !isSmsCapable() && !isDataCapable()) { + if (!isDeviceVoiceCapable() && !isSmsCapable() && !isDataCapable()) { modemCount = 0; } break; @@ -2814,7 +2814,7 @@ public class TelephonyManager { */ @RequiresFeature(PackageManager.FEATURE_TELEPHONY) public int getPhoneType() { - if (!isVoiceCapable() && !isDataCapable()) { + if (!isDeviceVoiceCapable() && !isDataCapable()) { return PHONE_TYPE_NONE; } return getCurrentPhoneType(); |