Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e025fcef authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by Android (Google) Code Review
Browse files

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

parents 8ad7c0ec ba874c68
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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) {