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

Commit c55df5a4 authored by Michael Groover's avatar Michael Groover Committed by Android (Google) Code Review
Browse files

Merge "Update SubInfo#getNumber docs to reflect permission requirement" into rvc-dev

parents 31c6d87f 77d7d6f7
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -449,12 +449,20 @@ public class SubscriptionInfo implements Parcelable {
    }

    /**
     * @return the number of this subscription.
     * @return the number of this subscription if the calling app has been granted the
     * READ_PHONE_NUMBERS permission, or an empty string otherwise
     */
    public String getNumber() {
        return mNumber;
    }

    /**
     * @hide
     */
    public void clearNumber() {
        mNumber = "";
    }

    /**
     * @return the data roaming state for this subscription, either
     * {@link SubscriptionManager#DATA_ROAMING_ENABLE} or {@link SubscriptionManager#DATA_ROAMING_DISABLE}.