Add replacement for deprecated network type override constant
The MMWAVE constant was deprecated in favour of a new constant with a better name. Thus, we need to check for both constants now. PiperOrigin-RevId: 449018959
This commit is contained in:
parent
05ce399558
commit
9345c1addc
@ -279,7 +279,8 @@ public final class NetworkTypeObserver {
|
||||
int overrideNetworkType = telephonyDisplayInfo.getOverrideNetworkType();
|
||||
boolean is5gNsa =
|
||||
overrideNetworkType == TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA
|
||||
|| overrideNetworkType == TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA_MMWAVE;
|
||||
|| overrideNetworkType == TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA_MMWAVE
|
||||
|| overrideNetworkType == TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_ADVANCED;
|
||||
updateNetworkType(is5gNsa ? C.NETWORK_TYPE_5G_NSA : C.NETWORK_TYPE_4G);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user