diff options
| author | 2020-01-27 20:22:36 +0000 | |
|---|---|---|
| committer | 2020-01-27 20:22:36 +0000 | |
| commit | bd9ff621380c0204cdfed57c8c3f01bd17c0df9e (patch) | |
| tree | 6ec3fc5d7ea9f92bcbf4bc5c5ee199f96b8aa738 | |
| parent | e86be6d43e46e950742073e4f6c7c029ec565aeb (diff) | |
| parent | c0673e9cbf1d4301feac8be394389b38a05be27a (diff) | |
Merge "Update test to not assume 2 max SIMs"
| -rw-r--r-- | cmds/telecom/src/com/android/commands/telecom/Telecom.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cmds/telecom/src/com/android/commands/telecom/Telecom.java b/cmds/telecom/src/com/android/commands/telecom/Telecom.java index 1987440106f5..97074050448e 100644 --- a/cmds/telecom/src/com/android/commands/telecom/Telecom.java +++ b/cmds/telecom/src/com/android/commands/telecom/Telecom.java @@ -366,12 +366,8 @@ public final class Telecom extends BaseCommand { } private void runGetMaxPhones() throws RemoteException { - // This assumes the max number of SIMs is 2, which it currently is - if (TelephonyManager.MULTISIM_ALLOWED == mTelephonyManager.isMultiSimSupported()) { - System.out.println("2"); - } else { - System.out.println("1"); - } + // how many logical modems can be potentially active simultaneously + System.out.println(mTelephonyManager.getSupportedModemCount()); } private void runSetEmergencyPhoneAccountPackageFilter() throws RemoteException { |