Merge changes from topics "getApnTypeString", "qns_switched_pref"
* changes: [Telephony] Clean up: remove getApnTypeStringInternal Disallow data when QNS switched the preference
This commit is contained in:
@@ -62,6 +62,7 @@ public final class AccessNetworkConstants {
|
||||
switch (transportType) {
|
||||
case TRANSPORT_TYPE_WWAN: return "WWAN";
|
||||
case TRANSPORT_TYPE_WLAN: return "WLAN";
|
||||
case TRANSPORT_TYPE_INVALID: return "INVALID";
|
||||
default: return Integer.toString(transportType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1581,16 +1581,6 @@ public class ApnSetting implements Parcelable {
|
||||
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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user