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

Commit ad1797bd authored by Makoto Onuki's avatar Makoto Onuki Committed by Android Git Automerger
Browse files

am c54e0ef6: am 469980b0: am a10277e3: Merge "Allow default SMS app to get...

am c54e0ef6: am 469980b0: am a10277e3: Merge "Allow default SMS app to get self phone number" into mnc-dev

* commit 'c54e0ef6':
  Allow default SMS app to get self phone number
parents 4f9dd63a c54e0ef6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2011,6 +2011,8 @@ public class TelephonyManager {
     * <p>
     * Requires Permission:
     *   {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
     * <p>
     * The default SMS app can also use this.
     */
    public String getLine1Number() {
        return getLine1NumberForSubscriber(getDefaultSubscription());
@@ -2022,6 +2024,8 @@ public class TelephonyManager {
     * <p>
     * Requires Permission:
     *   {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
     * <p>
     * The default SMS app can also use this.
     *
     * @param subId whose phone number for line 1 is returned
     */