Fix the Java crash in Settings : java.lang.IndexOutOfBoundsException
Bug: 329293848 Change-Id: Id775f6db2a90a59278f9b522b60680695d75c4a4 Test: build pass
This commit is contained in:
@@ -248,7 +248,8 @@ public class SubscriptionUtil {
|
|||||||
if (activeSlotSubInfoList.size() > 0) {
|
if (activeSlotSubInfoList.size() > 0) {
|
||||||
return (activeSlotSubInfoList.get(0).getSubscriptionId() == subId);
|
return (activeSlotSubInfoList.get(0).getSubscriptionId() == subId);
|
||||||
}
|
}
|
||||||
return (inactiveSlotSubInfoList.get(0).getSubscriptionId() == subId);
|
return (inactiveSlotSubInfoList.size() > 0)
|
||||||
|
&& (inactiveSlotSubInfoList.get(0).getSubscriptionId() == subId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Allow non-opportunistic + active eSIM subscription as primary
|
// Allow non-opportunistic + active eSIM subscription as primary
|
||||||
|
Reference in New Issue
Block a user