summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Nguyen <tnd@google.com>2023-01-05 17:13:30 -0800
committerSooraj Sasindran <sasindran@google.com>2023-01-07 00:53:11 +0000
commita93f00268d596b8a525ba0b1b23b80ddb74e8829 (patch)
treee38521a9e0acb1b486e42db0433dee56e4449457
parent12f428cb7c7058afe0a7b77ae8ca2cbd4038e278 (diff)
downloadbase-a93f00268d596b8a525ba0b1b23b80ddb74e8829.tar.gz
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.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/SmsMessage.java b/telephony/java/android/telephony/SmsMessage.java
index 28307d270134..4836c9f8610a 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.