diff options
| author | 2023-01-05 17:13:30 -0800 | |
|---|---|---|
| committer | 2023-01-12 22:26:13 +0000 | |
| commit | e01cc2e5dfb26a831d89eb44b95098ff647bb40b (patch) | |
| tree | 726349b4c4769b67376bf8f4a5ffe289fcbe2c0e | |
| parent | d120002396d17e17db0ad7884c1b4837b138c54d (diff) | |
Add one new method is3gpp
Bug: 262735040
Test: atest android.telephony.cts.VisualVoicemailServiceTest
Verified with live test that voice mail is received
Change-Id: Idae7ad9580f3c98e5f253e9e0627f68f5f87967b
| -rw-r--r-- | telephony/java/android/telephony/SmsMessage.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/SmsMessage.java b/telephony/java/android/telephony/SmsMessage.java index 95d513682997..845449ec556a 100644 --- a/telephony/java/android/telephony/SmsMessage.java +++ b/telephony/java/android/telephony/SmsMessage.java @@ -1031,6 +1031,15 @@ public class SmsMessage { } /** + * Check if format of the message is 3GPP. + * + * @hide + */ + public boolean is3gpp() { + return (mWrappedSmsMessage instanceof com.android.internal.telephony.gsm.SmsMessage); + } + + /** * Determines whether or not to use CDMA format for MO SMS. * If SMS over IMS is supported, then format is based on IMS SMS format, * otherwise format is based on current phone type. |