Merge "Fix the Java crash in Settings : java.lang.IndexOutOfBoundsException" into 24D1-dev am: 33f5aa3897
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27139247 Change-Id: I832da1d22799ba554696a66c2087c1ab6c84e201 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -249,7 +249,8 @@ public class SubscriptionUtil {
|
||||
if (activeSlotSubInfoList.size() > 0) {
|
||||
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
|
||||
|
Reference in New Issue
Block a user