diff options
| author | 2019-10-15 20:15:24 +0000 | |
|---|---|---|
| committer | 2019-10-15 20:15:24 +0000 | |
| commit | 6ddfde96fd0e82d1144c1cba1d65fa7534c20b44 (patch) | |
| tree | 79260a490b6b4152904b5a114998b11036179230 | |
| parent | 50c4313058469d8df53134bbd988fa037a905571 (diff) | |
| parent | 55bcdfeb347e34b9547ffa1d3034f06c89be89e0 (diff) | |
Merge "Remove isActivePhoneId as it's moved to PhoneConfigurationManager."
| -rw-r--r-- | telephony/java/android/telephony/SubscriptionManager.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/telephony/java/android/telephony/SubscriptionManager.java b/telephony/java/android/telephony/SubscriptionManager.java index cb187dd05581..959c22f59f49 100644 --- a/telephony/java/android/telephony/SubscriptionManager.java +++ b/telephony/java/android/telephony/SubscriptionManager.java @@ -2094,19 +2094,6 @@ public class SubscriptionManager { return phoneId >= 0 && phoneId < TelephonyManager.getDefault().getMaxPhoneCount(); } - /** - * When getPhoneCount and getMaxPhoneCount return different value, isValidPhoneId being true - * doesn't mean the phoneId has a corresponding active slot / logical modem. If a DSDS capable - * device is in single SIM mode, phoneId=1 is valid but not active. - * - * TODO: b/139642279 combine with SubscriptionManager#isValidPhoneId when phone objects - * are dynamically allocated instead of always based on getMaxPhoneCount. - * @hide - */ - public static boolean isActivePhoneId(int slotIndex) { - return slotIndex < TelephonyManager.getDefault().getPhoneCount(); - } - /** @hide */ @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) public static void putPhoneIdAndSubIdExtra(Intent intent, int phoneId) { |