Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e05296d authored by Aishwarya Mallampati's avatar Aishwarya Mallampati Committed by Automerger Merge Worker
Browse files

Return true from checkSubscriptionAssociatedWithUser if subId is not am: e5cdf7b0

parents 3e7bfa8c e5cdf7b0
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3602,6 +3602,13 @@ public class SubscriptionManagerService extends ISub.Stub {
                return true;
            }

            List<Integer> subIdList = subInfoList.stream().map(SubscriptionInfo::getSubscriptionId)
                    .collect(Collectors.toList());
            if (!subIdList.contains(subscriptionId)) {
                // Return true as this subscription is not available on the device.
                return true;
            }

            // Get list of subscriptions associated with this user.
            List<SubscriptionInfo> associatedSubscriptionsList =
                    getSubscriptionInfoListAssociatedWithUser(userHandle);