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

Commit c6910afb authored by Malcolm Chen's avatar Malcolm Chen
Browse files

multiSimAllowed should be consistent with max active modem property.

Bug: 153023231
Test: manual - using test app
Change-Id: I2d38dd9a0a860ee451fe51372a62c2910b88c88f
Merged-In: I2d38dd9a0a860ee451fe51372a62c2910b88c88f
parent abc516b9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -12230,6 +12230,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) {