Moved transport to IntDef

Moved out from the sub class per API review feedback.

Test: Build
Bug: 128607082

Change-Id: I4c476b61b472a9ce706ffe9e52da47e26b0b6dcf
This commit is contained in:
Jack Yu
2019-03-14 20:18:42 -07:00
parent defd0155a1
commit 763f7710fe

View File

@@ -318,7 +318,8 @@ public class NetworkSelectSettings extends DashboardFragment {
// Try to get the network registration states
ServiceState ss = mTelephonyManager.getServiceState();
List<NetworkRegistrationState> networkList =
ss.getNetworkRegistrationStates(AccessNetworkConstants.TransportType.WWAN);
ss.getNetworkRegistrationStatesForTransportType(
AccessNetworkConstants.TRANSPORT_TYPE_WWAN);
if (networkList == null || networkList.size() == 0) {
// Remove the connected network operators category
mConnectedPreferenceCategory.setVisible(false);