Merge "Move the check on multisim support when switch configuration is done"

This commit is contained in:
Michele Berionne
2019-03-04 21:12:06 +00:00
committed by Gerrit Code Review

View File

@@ -10301,12 +10301,6 @@ public class TelephonyManager {
@SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
@RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
public void switchMultiSimConfig(int numOfSims) {
//only proceed if multi-sim is not restricted
if (!isMultisimSupported()) {
Rlog.e(TAG, "switchMultiSimConfig not possible. It is restricted or not supported.");
return;
}
try {
ITelephony telephony = getITelephony();
if (telephony != null) {