diff options
author | Stuart Scott <stuartscott@google.com> | 2015-04-20 17:56:48 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-04-20 17:56:49 +0000 |
commit | 0ce64e26c03e5d826bbb4bc041b8ca59b6c19b8b (patch) | |
tree | 39f8e0320143b06d75158b81fefaf82276d2b138 /src/com/android/settings/Utils.java | |
parent | e5112fe7665eca3dc47b5bb8bd2f22de77a44c44 (diff) | |
parent | f51d00635028c0b87dd431c33c932ad20202d032 (diff) | |
download | packages_apps_Settings-0ce64e26c03e5d826bbb4bc041b8ca59b6c19b8b.zip packages_apps_Settings-0ce64e26c03e5d826bbb4bc041b8ca59b6c19b8b.tar.gz packages_apps_Settings-0ce64e26c03e5d826bbb4bc041b8ca59b6c19b8b.tar.bz2 |
Merge "Correct the way settings deals with subscriptions."
Diffstat (limited to 'src/com/android/settings/Utils.java')
-rw-r--r-- | src/com/android/settings/Utils.java | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/com/android/settings/Utils.java b/src/com/android/settings/Utils.java index dc4b484..d05160c 100644 --- a/src/com/android/settings/Utils.java +++ b/src/com/android/settings/Utils.java @@ -1029,49 +1029,6 @@ public final class Utils { } /** - * finds a record with subId. - * Since the number of SIMs are few, an array is fine. - */ - public static SubscriptionInfo findRecordBySubId(Context context, final int subId) { - final List<SubscriptionInfo> subInfoList = - SubscriptionManager.from(context).getActiveSubscriptionInfoList(); - if (subInfoList != null) { - final int subInfoLength = subInfoList.size(); - - for (int i = 0; i < subInfoLength; ++i) { - final SubscriptionInfo sir = subInfoList.get(i); - if (sir != null && sir.getSubscriptionId() == subId) { - return sir; - } - } - } - - return null; - } - - /** - * finds a record with slotId. - * Since the number of SIMs are few, an array is fine. - */ - public static SubscriptionInfo findRecordBySlotId(Context context, final int slotId) { - final List<SubscriptionInfo> subInfoList = - SubscriptionManager.from(context).getActiveSubscriptionInfoList(); - if (subInfoList != null) { - final int subInfoLength = subInfoList.size(); - - for (int i = 0; i < subInfoLength; ++i) { - final SubscriptionInfo sir = subInfoList.get(i); - if (sir.getSimSlotIndex() == slotId) { - //Right now we take the first subscription on a SIM. - return sir; - } - } - } - - return null; - } - - /** * Queries for the UserInfo of a user. Returns null if the user doesn't exist (was removed). * @param userManager Instance of UserManager * @param checkUser The user to check the existence of. |