diff --git a/telephony/java/android/telephony/SubscriptionManager.java b/telephony/java/android/telephony/SubscriptionManager.java index c3ad82627a0e4..edfddc7d5e8b3 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; }