diff options
author | Sanket Padawe <sanketpadawe@google.com> | 2014-10-28 13:06:08 -0700 |
---|---|---|
committer | Sanket Padawe <sanketpadawe@google.com> | 2014-10-28 13:06:08 -0700 |
commit | d95198eb36d483749f1a782e5f61a1684dcf0df2 (patch) | |
tree | e5e3cf93f188c67654a45a33a145267c95d10ab1 /telephony | |
parent | e8d9810cdef5b3e288f54f42adc3205532343406 (diff) | |
download | frameworks_base-d95198eb36d483749f1a782e5f61a1684dcf0df2.zip frameworks_base-d95198eb36d483749f1a782e5f61a1684dcf0df2.tar.gz frameworks_base-d95198eb36d483749f1a782e5f61a1684dcf0df2.tar.bz2 |
Remove checks to support new sim color selection.
Remove checks to support new sim color selection in multi-sim settings UI.
Change-Id: I26da0a79f5b1edf829fc5d46af2c0c23962226b8
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/SubscriptionManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/telephony/java/android/telephony/SubscriptionManager.java b/telephony/java/android/telephony/SubscriptionManager.java index c3ad826..edfddc7 100644 --- a/telephony/java/android/telephony/SubscriptionManager.java +++ b/telephony/java/android/telephony/SubscriptionManager.java @@ -470,7 +470,7 @@ public class SubscriptionManager implements BaseColumns { /** * Set SIM color by simInfo index - * @param color the color of the SIM + * @param color the rgb value of color of the SIM * @param subId the unique SubInfoRecord index in database * @return the number of records updated * @hide @@ -478,7 +478,7 @@ public class SubscriptionManager implements BaseColumns { public static int setColor(int color, int subId) { if (VDBG) logd("[setColor]+ color:" + color + " subId:" + subId); int size = sSimBackgroundDarkRes.length; - if (!isValidSubId(subId) || color < 0 || color >= size) { + if (!isValidSubId(subId)) { logd("[setColor]- fail"); return -1; } |