Loading src/java/com/android/internal/telephony/NetworkTypeController.java +9 −4 Original line number Diff line number Diff line Loading @@ -352,11 +352,16 @@ public class NetworkTypeController extends StateMachine { private @Annotation.OverrideNetworkType int getCurrentOverrideNetworkType() { int displayNetworkType = TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NONE; int dataNetworkType = mPhone.getServiceState().getDataNetworkType(); NetworkRegistrationInfo nri = mPhone.getServiceState().getNetworkRegistrationInfo( NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); int dataNetworkType = nri == null ? TelephonyManager.NETWORK_TYPE_UNKNOWN : nri.getAccessNetworkTechnology(); boolean nrNsa = isLte(dataNetworkType) && mPhone.getServiceState().getNrState() != NetworkRegistrationInfo.NR_STATE_NONE; boolean nrSa = dataNetworkType == TelephonyManager.NETWORK_TYPE_NR; // NR display is not accurate when physical channel config notifications are off if (mIsPhysicalChannelConfigOn && (mPhone.getServiceState().getNrState() != NetworkRegistrationInfo.NR_STATE_NONE || dataNetworkType == TelephonyManager.NETWORK_TYPE_NR)) { if (mIsPhysicalChannelConfigOn && (nrNsa || nrSa)) { // Process NR display network type displayNetworkType = getNrDisplayType(); if (displayNetworkType == TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NONE) { Loading Loading
src/java/com/android/internal/telephony/NetworkTypeController.java +9 −4 Original line number Diff line number Diff line Loading @@ -352,11 +352,16 @@ public class NetworkTypeController extends StateMachine { private @Annotation.OverrideNetworkType int getCurrentOverrideNetworkType() { int displayNetworkType = TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NONE; int dataNetworkType = mPhone.getServiceState().getDataNetworkType(); NetworkRegistrationInfo nri = mPhone.getServiceState().getNetworkRegistrationInfo( NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); int dataNetworkType = nri == null ? TelephonyManager.NETWORK_TYPE_UNKNOWN : nri.getAccessNetworkTechnology(); boolean nrNsa = isLte(dataNetworkType) && mPhone.getServiceState().getNrState() != NetworkRegistrationInfo.NR_STATE_NONE; boolean nrSa = dataNetworkType == TelephonyManager.NETWORK_TYPE_NR; // NR display is not accurate when physical channel config notifications are off if (mIsPhysicalChannelConfigOn && (mPhone.getServiceState().getNrState() != NetworkRegistrationInfo.NR_STATE_NONE || dataNetworkType == TelephonyManager.NETWORK_TYPE_NR)) { if (mIsPhysicalChannelConfigOn && (nrNsa || nrSa)) { // Process NR display network type displayNetworkType = getNrDisplayType(); if (displayNetworkType == TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NONE) { Loading