Merge changes from topics "getApnTypeString", "qns_switched_pref" am: ef140360c3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1763946 Change-Id: If3fd168078210a902f40f568336c7357c28db4b3
This commit is contained in:
@@ -1581,16 +1581,6 @@ public class ApnSetting implements Parcelable {
|
|||||||
return apnTypeString == null ? "" : apnTypeString;
|
return apnTypeString == null ? "" : apnTypeString;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Same as {@link #getApnTypeString(int)}, but returns "Unknown" instead of an empty string
|
|
||||||
* when provided with an invalid int for compatibility purposes.
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
public static @NonNull String getApnTypeStringInternal(@ApnType int apnType) {
|
|
||||||
String result = getApnTypeString(apnType);
|
|
||||||
return TextUtils.isEmpty(result) ? "Unknown" : result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts the string representation of an APN type to its integer representation.
|
* Converts the string representation of an APN type to its integer representation.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user