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

Commit e5cdf7b0 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati
Browse files

Return true from checkSubscriptionAssociatedWithUser if subId is not

present on the device.

Bug: 277184941
Test: atest CtsTelephonyTestCases
      atest MmsTest#testSendMmsMessageWithInactiveSubscriptionId
      Flashed build on raven-userdebug: call/SMS/MMS are working fine.

Change-Id: Ic1a5abdb42ea184925c41210b3f4b628df5f94ec
parent 3dd7975a
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);