Merge "[Settings] Refactor MobileNetworkUtils"
This commit is contained in:
committed by
Android (Google) Code Review
commit
0f933bcc00
@@ -468,10 +468,7 @@ public class MobileNetworkUtils {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!isWorldMode(context, subId)) {
|
||||
return isGsmBasicOptions(context, subId);
|
||||
}
|
||||
|
||||
if (isWorldMode(context, subId)) {
|
||||
final int networkMode = getNetworkTypeFromRaf(
|
||||
(int) telephonyManager.getAllowedNetworkTypesForReason(
|
||||
TelephonyManager.ALLOWED_NETWORK_TYPES_REASON_USER));
|
||||
@@ -482,15 +479,12 @@ public class MobileNetworkUtils {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isGsmBasicOptions(context, subId)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (networkMode == TelephonyManagerConstants.NETWORK_MODE_LTE_GSM_WCDMA) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
return isGsmBasicOptions(context, subId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user