Merge "multiSimAllowed should be consistent with max active modem property." into rvc-dev

This commit is contained in:
Xiangyu/Malcolm Chen
2020-04-03 00:43:30 +00:00
committed by Android (Google) Code Review

View File

@@ -12344,6 +12344,9 @@ public class TelephonyManager {
@RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
@IsMultiSimSupportedResult
public int isMultiSimSupported() {
if (getSupportedModemCount() < 2) {
return TelephonyManager.MULTISIM_NOT_SUPPORTED_BY_HARDWARE;
}
try {
ITelephony service = getITelephony();
if (service != null) {