Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49e00a8e authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Change the wording of getNumber() API documentation in the...

Merge "Change the wording of getNumber() API documentation in the SubscriptionInfo class to make, the requirements and return value more clear." into main
parents ab6c8dbb cdac6c48
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -573,7 +573,7 @@ public class SubscriptionInfo implements Parcelable {
     * Returns the number of this subscription.
     * Returns the number of this subscription.
     *
     *
     * Starting with API level 30, returns the number of this subscription if the calling app meets
     * 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>
     * <ul>
     *     <li>If the calling app's target SDK is API level 29 or lower and the app has been granted
     *     <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.
     *     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.
     *     <li>If the calling app is the default SMS role holder.
     * </ul>
     * </ul>
     *
     *
     * @return the number of this subscription, or an empty string if one of these requirements is
     * @return the number of this subscription, or an empty string if none of the requirements
     * not met
     * are met.
     * @deprecated use {@link SubscriptionManager#getPhoneNumber(int)} instead, which takes a
     * @deprecated use {@link SubscriptionManager#getPhoneNumber(int)} instead, which takes a
     *             {@link #getSubscriptionId() subscription ID}.
     *             {@link #getSubscriptionId() subscription ID}.
     */
     */