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

Commit ca2e7657 authored by Nathan Harold's avatar Nathan Harold
Browse files

Expose PreciseDataConnectionstate#getApnSetting()

Expose an API that was accidentally left as package private.

This is was missed when exposing other methods for the same
class; however, other methods have been deprecated based on
the presumption that this method is available in the public
API.

This method deprecated:
PreciseDataConnectionState#getDataConnectionApnTypeBitMask()
PreciseDataConnectionState#getDataConnectionApn()

Bug: 148565164
Bug: 147600208
Test: make update-api && make offline-sdk-docs
Merged-In: I0207c18d853d0b83db2622ff3abcda98565eac30
Change-Id: I0207c18d853d0b83db2622ff3abcda98565eac30
(cherry picked from commit a61992b6)
parent b4180288
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -45516,6 +45516,7 @@ package android.telephony {
  public final class PreciseDataConnectionState implements android.os.Parcelable {
    method public int describeContents();
    method @Nullable public android.telephony.data.ApnSetting getApnSetting();
    method public int getLastCauseCode();
    method @Nullable public android.net.LinkProperties getLinkProperties();
    method public int getNetworkType();
+2 −2
Original line number Diff line number Diff line
@@ -265,10 +265,10 @@ public final class PreciseDataConnectionState implements Parcelable {
    /**
     * Return the APN Settings for this data connection.
     *
     * Returns the ApnSetting that was used to configure this data connection.
     * @return the ApnSetting that was used to configure this data connection.
     */
    // FIXME: This shouldn't be nullable; update once the ApnSetting is supplied correctly
    @Nullable ApnSetting getApnSetting() {
    public @Nullable ApnSetting getApnSetting() {
        return mApnSetting;
    }