Fix showing "Invalid Network Mode 26. Ignore" on Preferred network type

After setting the network to telephony framework, Setting UI didn't check this network type when show on the UI and show the invalid string.

Bug: 152373426
Test: manual
Change-Id: Ibf280a9905edcb7bd241a1505e85ac5e83993634
This commit is contained in:
James.cf Lin
2020-03-27 09:54:08 +08:00
parent 7440bf7034
commit 9f8edf2b67

View File

@@ -466,6 +466,7 @@ public class EnabledNetworkModePreferenceController extends
}
break;
case TelephonyManagerConstants.NETWORK_MODE_NR_LTE_CDMA_EVDO:
case TelephonyManagerConstants.NETWORK_MODE_NR_LTE_GSM_WCDMA:
case TelephonyManagerConstants.NETWORK_MODE_NR_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA:
setSelectedEntry(networkMode);
setSummary(mContext.getString(R.string.network_5G)