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

Commit a6af0d45 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "BluetoothInCallService: Release the parent call if there is a...

Merge "BluetoothInCallService: Release the parent call if there is a conference call" am: 91e5a2d4

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/1696168

Change-Id: I839750f4ef8c0d6232d39e502c141a53f1593b77
parents 4962e11e 91e5a2d4
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -347,6 +347,13 @@ public class BluetoothInCallService extends InCallService {
            if (mCallInfo.isNullCall(call)) {
                return false;
            }
            // release the parent if there is a conference call
            BluetoothCall conferenceCall = getBluetoothCallById(call.getParentId());
            if (!mCallInfo.isNullCall(conferenceCall)
                    && conferenceCall.getState() == Call.STATE_ACTIVE) {
                Log.i(TAG, "BT - hanging up conference call");
                call = conferenceCall;
            }
            call.disconnect();
            return true;
        }