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

Commit 46866eb1 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati Committed by Automerger Merge Worker
Browse files

Return true from checkSubscriptionAssociatedWithUser if subId is not am:...

Return true from checkSubscriptionAssociatedWithUser if subId is not am: e5cdf7b0 am: 655ae0fd am: f8279354

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/23089757



Change-Id: Ie079e783025c8cefddcec503562956ebf096923b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents b3f7d3b7 f8279354
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);