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

Commit 6f36c7fd authored by Umashankar Godachi's avatar Umashankar Godachi Committed by android-build-merger
Browse files

Merge "Fix to add existing connection for emergency only account."

am: 30cecdb8

Change-Id: I6e6c1ae6696dc051a7be9a1640723a0d910f5abe
parents 7997aba1 30cecdb8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -813,8 +813,11 @@ public class ConnectionServiceWrapper extends ServiceBinder implements
                    // ParcelableConnection is in fact registered to Telecom and is being called
                    // from the correct user.
                    List<PhoneAccountHandle> accountHandles =
                    // Include CAPABILITY_EMERGENCY_CALLS_ONLY in this list in case we are adding
                    // an emergency call.
                            mPhoneAccountRegistrar.getCallCapablePhoneAccounts(null /*uriScheme*/,
                                    false /*includeDisabledAccounts*/, userHandle);
                            false /*includeDisabledAccounts*/, userHandle, 0 /*capabilities*/,
                            0 /*excludedCapabilities*/);
                    PhoneAccountHandle phoneAccountHandle = null;
                    for (PhoneAccountHandle accountHandle : accountHandles) {
                        if(accountHandle.equals(callingPhoneAccountHandle)) {