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

Commit f2014b25 authored by Chen Chen's avatar Chen Chen
Browse files

BluetoothInCallService: Release the parent call if there is a conference call

Bug: 184718425
Test: atest BluetoothInstrumentationTests
Tag: #feature
Change-Id: I6c689b135128cc00f9c8bf1b9af867d3c01b73ba
parent 72381471
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;
        }