Add checks on multisim capabilities.

Rename method isMultisimCarrierRestricted to isMultisimSupported to
indicate extended scope that includes checks on the capabilities of the
hardware to support multi-SIM configuration.

Bug: 123537730
Test: Compilation, test application
Change-Id: I39954476a9a8fad791892a65d2c47aa23be75053
This commit is contained in:
Michele
2019-02-16 10:00:56 -08:00
parent bad926c890
commit 4919064d21

View File

@@ -1559,9 +1559,7 @@ public class RadioInfo extends Activity {
}
private static boolean isDsdsSupported() {
return PhoneConfigurationManager.getInstance().getStaticPhoneCapability()
.logicalModemList.size() >= 2
&& !TelephonyManager.getDefault().isMultisimCarrierRestricted();
return TelephonyManager.getDefault().isMultisimSupported();
}
private static boolean isDsdsEnabled() {