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:
Jack Yu
2021-07-13 17:04:23 +00:00
committed by Gerrit Code Review
2 changed files with 1 additions and 10 deletions

View File

@@ -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);
}
}

View File

@@ -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.
*