Merge "Fix the Java crash in Settings : java.lang.IndexOutOfBoundsException" into 24D1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
33f5aa3897
@@ -248,7 +248,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