summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steve Statia <stevestatia@google.com> 2024-02-26 22:45:31 +0000
committer Steve Statia <stevestatia@google.com> 2024-02-27 22:19:38 +0000
commitcdac6c486376003bfcd49d6e4620030e256d98f7 (patch)
tree5cc8a3e3a01925fd12126e7b4438db0c0db76810
parent1ff9e4d3708b32926f76316904d0a0b24003e0a0 (diff)
Change the wording of getNumber() API documentation in the SubscriptionInfo class to make, the requirements and return value more clear.
Bug: 298162053 Change-Id: Ia52134870d5ce4857d1a202b4b1d89c1f66bee4e Test: manual
-rw-r--r--telephony/java/android/telephony/SubscriptionInfo.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/telephony/java/android/telephony/SubscriptionInfo.java b/telephony/java/android/telephony/SubscriptionInfo.java
index 82ed340e8a0c..58488d1900fe 100644
--- a/telephony/java/android/telephony/SubscriptionInfo.java
+++ b/telephony/java/android/telephony/SubscriptionInfo.java
@@ -573,7 +573,7 @@ public class SubscriptionInfo implements Parcelable {
* Returns the number of this subscription.
*
* Starting with API level 30, returns the number of this subscription if the calling app meets
- * one of the following requirements:
+ * at least one of the following requirements:
* <ul>
* <li>If the calling app's target SDK is API level 29 or lower and the app has been granted
* the READ_PHONE_STATE permission.
@@ -584,8 +584,8 @@ public class SubscriptionInfo implements Parcelable {
* <li>If the calling app is the default SMS role holder.
* </ul>
*
- * @return the number of this subscription, or an empty string if one of these requirements is
- * not met
+ * @return the number of this subscription, or an empty string if none of the requirements
+ * are met.
* @deprecated use {@link SubscriptionManager#getPhoneNumber(int)} instead, which takes a
* {@link #getSubscriptionId() subscription ID}.
*/